Re: not able to create NSIMage using init methods
Re: not able to create NSIMage using init methods
- Subject: Re: not able to create NSIMage using init methods
- From: Stéphane <email@hidden>
- Date: Mon, 7 Jul 2008 16:12:03 +0200
On Jul 7, 2008, at 4:05 PM, MAnish Billore wrote:
Hi
I am creating an nsimage using initWithData function.
NSData *filedata= [NSData dataWithContentsOfFile:datapath];
NSImage *myImage = [NSImage initWithData: filedata];
but I am getting following warning message
NSImage' may not respond to '+initWithData:'
please help me even I am not able to use any init method for
creatin NSImage
This is more a question for the Cocoa-dev mailing list.
1. Check the Objective-C language reference to understand the
difference between a class (+) and instance method (-).
2. Check some sample code to see how allocation and initialization
is done in Cocoa.
3. Finally, look at the initWithContentsOfFile: method for NSImage.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden