• 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: Andy Mroczkowski <email@hidden>
  • Date: Mon, 7 Jul 2008 10:17:20 -0400

As Stéphane mentioned, this is more appropriate for the cocoa-dev mailing list.

As for your problem, read the Cocoa Fundamentals guide
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/Introduction/chapter_1_section_1.html

particularly the section on Object Creation
http://developer.apple.com/documentation/Cocoa/Conceptual/CocoaFundamentals/CocoaObjects/chapter_3_section_6.html#/ /apple_ref/doc/uid/TP40002974-CH4-SW17


- Andy


On Jul 7, 2008, at 10:05 AM, 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.


Thanks
Manis bill
_______________________________________________
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

_______________________________________________ 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: Is tuning possible with IB Synchronize With Xcode?
  • Previous by thread: Re: not able to create NSIMage using init methods
  • Next by thread: Is tuning possible with IB Synchronize With Xcode?
  • Index(es):
    • Date
    • Thread