Interesting effect with NSKeyedArchiver archiveRootObject
Interesting effect with NSKeyedArchiver archiveRootObject
- Subject: Interesting effect with NSKeyedArchiver archiveRootObject
- From: Aaron Fothergill <email@hidden>
- Date: Mon, 18 Oct 2004 00:15:31 +0100
I've just been debugging a strange effect where an array of NSImages I'm loading in seem to have all had their sizes set to 0,0
The effect seems to be because I changed the source of the array to load in via the NSImage imageNamed method rather than the imageFromPath that I was previously using. When archived with archiveRootObject, these NSImages only seem to retain their size when loaded into the initial app that created them. If loaded into another app, they get zero'd.
I'm guessing that this is because the images are treated differently internally if they're pulled in with imageNamed (from the app's resources), but I'm not sure if it's intended or not. Has anyone else come across this and is a feature or something I should report as a bug ?
_____________________________
Aaron Fothergill : MD / Lead Coder
Strange Flavour Ltd
email@hidden
http://www.strangeflavour.com _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden