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: Kyle Sluder <email@hidden>
- Date: Sun, 8 Feb 2009 18:21:41 -0500
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