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: Charles Yeomans <charles@declareSub.com>
Date: Wed, 31 Dec 2008 12:18:07 -0500
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: <321221.63621.qm@web65606.mail.ac4.yahoo.com>
References: <321221.63621.qm@web65606.mail.ac4.yahoo.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
OpenAsPicture cannot open an .icns file.

Charles Yeomans

On Dec 31, 2008, at 12:08 PM, Lennox Jacob wrote:

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>