realbasic-nug
[Top] [All Lists]

Re: "Resource not found!" error

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: "Resource not found!" error
From: M Pulis <toothpic@fastq.com>
Date: Wed, 31 Dec 2008 08:19:48 -0700
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <537493.59966.qm@web65609.mail.ac4.yahoo.com>
References: <537493.59966.qm@web65609.mail.ac4.yahoo.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
perhaps safari does not have the resource that photoshop does, should it?
to "fix", get photoshop.
gary


On Dec 31, 2008, at 7:58 AM, Lennox Jacob wrote:

Hello,

I got this example from the LR but when I run it I am getting this message - "Resource not found!".


'This example gets the desktop application icon for Photoshop® and displays it in a Canvas control.
  #if TargetMacOS then
    Dim rf as ResourceFork
    Dim f as FolderItem
    Dim p as Picture
'f= GetFolderItem("Photoshop") I don't have Photoshop, but I have Safari
    f= GetFolderItem("Safari")
    If f <> Nil then
      rf=f.OpenResourceFork
      If rf <> Nil then
        p=rf.Geticl(128)
        Canvas1.backdrop=p
      Else
        MsgBox "Resource not found!"
      End if
    Else
      MsgBox "File not found!"
    End if

  #Else
msgbox "Sorry, but access to the resourcefork is supported only on Macintosh"
  #endif

How can I fix that?

Thanks.

Lennox






_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>