passing argument 1 of 'setContents:' from incompatible pointer type
passing argument 1 of 'setContents:' from incompatible pointer type
- Subject: passing argument 1 of 'setContents:' from incompatible pointer type
- From: David Blanton <email@hidden>
- Date: Sun, 8 Feb 2009 13:54:22 -0700
NSString* imageFileName = [[[NSBundle mainBundle] resourcePath]
stringByAppendingPathComponent:@"Level 1 top.png"];
CGDataProviderRef provider =
CGDataProviderCreateWithFilename([imageFileName UTF8String]);
_level1 = [[CALayer layer] retain];
_level1.contents = CGImageCreateWithPNGDataProvider(provider, NULL,
true, kCGRenderingIntentDefault);
CGImageCreateWithPNGDataProvider returns a CGImageRef yet the above
_level1.contents = gives the warning specified in the subject line ....
can someone tell me why?
_______________________________________________
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