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:33:34 -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=MhoEwPrJEgbvSed1umxgmbqJ1vlRch7UvPzlKsoU5mBKfYIpywX8RWwdUakXvd2WG4vcrttsRKc6XbefaXCWv3DtgDYBWE/9hacGptyR/Ys9eDvASTo1Eyj4eo3lbbm/Oy5J1h9jWUddOIUbgifTPACVl1w4yjuzYp0gphRLRk4=;
Domainkey-status: bad (test mode)
In-reply-to: <9B6BCEF1-AEF0-4B87-AE04-5E3F2B9E74E8@great-white-software.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
Thanks Norman and Charles,
I downloaded the MacOSLib and is trying it out now.
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, 9:23 AM
> On 31-Dec-08, at 10:08 AM, 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.
> 
> 
> Exactly as I would expect
> An ICNS file is many pictures of varying sizes all crammed
> into one file
> This is why you need to follow the remainder of my advice
> and grab MacOSLib and have a look at how it's examples
> for Icon Services grabs an icon from an application
> 
> 
> _______________________________________________
> 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>