• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: not able to create NSIMage using init methods
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >not able to create NSIMage using init methods (From: "MAnish Billore" <email@hidden>)

  • Prev by Date: Re: not able to create NSIMage using init methods
  • Next by Date: Re: not able to create NSIMage using init methods
  • Previous by thread: Re: not able to create NSIMage using init methods
  • Next by thread: Re: not able to create NSIMage using init methods
  • Index(es):
    • Date
    • Thread