• 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
Interesting effect with NSKeyedArchiver archiveRootObject
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Prev by Date: Re: [NEWBIE] viewing implementation files
  • Next by Date: Re: Bindings for NSTextFields
  • Previous by thread: Re: [NEWBIE] viewing implementation files
  • Next by thread: Sending Mouse Events
  • Index(es):
    • Date
    • Thread