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: "Stephen J. Butler" <email@hidden>
- Date: Sun, 8 Feb 2009 15:48:12 -0600
On Sun, Feb 8, 2009 at 2:54 PM, David Blanton <email@hidden> wrote:
> NSString* imageFileName = [[[NSBundle mainBundle] resourcePath]
> stringByAppendingPathComponent:@"Level 1 top.png"];
Just a comment... you should probably be using pathToResource:ofType: here.
NSString* imageFileName = [[NSBundle mainBundle]
pathToResource:@"Level 1 top" ofType:@"png"];
_______________________________________________
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