On 3/10/13 3:51 AM, Graham Cox wrote:> On 10/03/2013, at 5:08 AM, Markus Spoettl <ms_li...@shiftoption.com
> <mailto:ms_li...@shiftoption.com>> 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 (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to