• 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: NSImage TIFFRepresentation crashes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage TIFFRepresentation crashes


  • Subject: Re: NSImage TIFFRepresentation crashes
  • From: Markus Spoettl <email@hidden>
  • Date: Sun, 10 Mar 2013 09:12:48 +0100

On 3/10/13 3:51 AM, Graham Cox wrote:> On 10/03/2013, at 5:08 AM, Markus Spoettl <email@hidden
> <mailto:email@hidden>> wrote:
>
>> and serializes the image without problem
>
>
> Do you mean you are archiving the NSImage itself? That is rarely a good
> idea, so might be causing the image to be dearchived in a bad state.

Yes, I'm archiving (or rather was) the NSImage. I wasn't aware of potential problems and sure haven't had any reports on this going wrong in many years. I guess it depends on what you do with the image, which is drawing into a context in our case. Why does it conform to NSCoding if it's not safe to use?

Ironically the crash happens in a method used to get a PNG representation from the image (see my reply to Mike) which we now save instead of the NSImage (to save space and for platform compatibility of the archive between OSX and iOS).

Regards
Markus--
__________________________________________
Markus Spoettl
_______________________________________________

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: NSImage TIFFRepresentation crashes
      • From: Graham Cox <email@hidden>
References: 
 >NSImage TIFFRepresentation crashes (From: Markus Spoettl <email@hidden>)
 >Re: NSImage TIFFRepresentation crashes (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: NSImage TIFFRepresentation crashes
  • Next by Date: Re: NSImage TIFFRepresentation crashes
  • Previous by thread: Re: NSImage TIFFRepresentation crashes
  • Next by thread: Re: NSImage TIFFRepresentation crashes
  • Index(es):
    • Date
    • Thread