• 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: CGImage to NSImage, or PDFPage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CGImage to NSImage, or PDFPage?


  • Subject: Re: CGImage to NSImage, or PDFPage?
  • From: Quincey Morris <email@hidden>
  • Date: Tue, 10 Aug 2010 14:57:42 -0700

On Aug 10, 2010, at 14:45, Brian Postow wrote:

> 	NSImage* img = [NSImage alloc];
> 	[img initWithData: imgData];

Well, you definitely don't want to do this. There's no guarantee that the initialized object returned by 'initWithData:' is img, so you could easily be returning an uninitialized object.

Assuming that's not the problem here, what source line is producing the "not a TIFF file" error?


_______________________________________________

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

  • Follow-Ups:
    • Re: CGImage to NSImage, or PDFPage?
      • From: Brian Postow <email@hidden>
References: 
 >CGImage to NSImage, or PDFPage? (From: Brian Postow <email@hidden>)

  • Prev by Date: CGImage to NSImage, or PDFPage?
  • Next by Date: Re: CGImage to NSImage, or PDFPage?
  • Previous by thread: CGImage to NSImage, or PDFPage?
  • Next by thread: Re: CGImage to NSImage, or PDFPage?
  • Index(es):
    • Date
    • Thread