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 08:50:09 -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:Content-Transfer-Encoding:Message-ID; b=tFSC2PCvb0EgmNxHQyJWkBjByGX8Torht8ODmeMhVtyF0CjEkhpuJZ44RbXaxwrWQJeENxxryJS0prpVltcWG6Ie5gOHTZHgHu2ZqhFzUAqe962lU6EUCyvNEVbznQ2u0875e7fVeUpIprHSB7V8sabb6oxyghe91IGxxPNnxDM=;
Domainkey-status: bad (test mode)
In-reply-to: <A5233F35-18F7-4770-8B2C-F4190297A06C@thezaz.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thanks Thom,

I did this:

  '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= 
SpecialFolder.Applications.child("Safari.app").child("Contents").child("Resources").Child("compass.icns")
    f.launch  'This launches Preview and displays the compass as a picture
    
How could I get the Compass displayed as a picture in Canvas1?

Thanks.

Lennox

--- On Wed, 12/31/08, Thom McGrath <lists@thezaz.com> wrote:

> From: Thom McGrath <lists@thezaz.com>
> Subject: Re: "Resource not found!" error
> To: "REALbasic NUG" <realbasic-nug@lists.realsoftware.com>
> Date: Wednesday, December 31, 2008, 7:35 AM
> Safari is a folder. It's actually Safari.app. It's
> icon is Safari.app/Contents/Resources/compass.icns. No more
> resource forks.
> 
> On Dec 31, 2008,


      

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