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: Lennox Jacob <lenpartico@yahoo.com>
Date: Wed, 31 Dec 2008 09:08:12 -0800 (PST)
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; domainkeys=hardfail (test mode) header.From=lenpartico@yahoo.com
Delivered-to: listarchive@realsoftware.com
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=wpzsE/ZmX+rQ4x28JD8wSD8dXGld+7694JuHe3SrRBzZWE5MXvTp1s+lZub3dNXfuRgBs/adr8h7F+1MTeRJO1rWuKKlwOzf+VmvnmQmFE0nraKucsCUcGT1Vd0rqcyu1HzaxYAE/xgBTP7V6M+BBKM8MCYlsrIPoGGHYp0Cbuc=;
Domainkey-status: bad (test mode)
In-reply-to: <A1BBD52D-6119-403F-A394-F2B8D9FC9BBB@great-white-software.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I tried this:

  #if TargetMacOS then
    Dim f as FolderItem
    Dim p as Picture
    f= 
SpecialFolder.Applications.child("Safari.app").child("Contents").child("Resources").Child("compass.icns")
    
    If f <> Nil then
      'f.launch  'This launches Preview and displays the compass as a picture
      p=f.OpenAsPicture
      Canvas1.backdrop=p
    End if
    
  #endif

but the compass was not displayed in Canvas1, nothing happened.

Lennox


--- On Wed, 12/31/08, Norman Palardy <npalardy@great-white-software.com> wrote:

> From: Norman Palardy <npalardy@great-white-software.com>
> Subject: Re: "Resource not found!" error
> To: "REALbasic NUG" <realbasic-nug@lists.realsoftware.com>
> Date: Wednesday, December 31, 2008, 8:51 AM
> Many applications are going away from any kinds of resources
> You might need to use a different mechanism to get the icon
> MacOSLib has this implemented in its MacIcon classes which
> can grab the icon for a given folderItem


      

_______________________________________________
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>