Re: NSImage TIFFRepresentation crashes
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