Re: passing argument 1 of 'setContents:' from incompatible pointer type
Re: passing argument 1 of 'setContents:' from incompatible pointer type
- Subject: Re: passing argument 1 of 'setContents:' from incompatible pointer type
- From: David Blanton <email@hidden>
- Date: Sun, 8 Feb 2009 16:40:30 -0700
Kyle and Stephen ... great comments
- so there are three ways to get the image file
what criteria should I use in deciding which to use ?
On Feb 8, 2009, at 4:21 PM, Kyle Sluder wrote:
On Sun, Feb 8, 2009 at 4:48 PM, Stephen J. Butler
<email@hidden> wrote:
Just a comment... you should probably be using
pathToResource:ofType: here.
Or use +[NSImage imageNamed:] and use -[NSBitmapImageRep CGImage] on
its first representation...
_level1.contents = (id)[[[[NSImage imageNamed:@"Level 1 top"]
representations] objectAtIndex:0] CGImage];
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden