• 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: how to get objects of type Class to play with NSCoder?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to get objects of type Class to play with NSCoder?


  • Subject: Re: how to get objects of type Class to play with NSCoder?
  • From: Thomas Engelmeier <email@hidden>
  • Date: Tue, 18 Sep 2007 10:33:28 +0200


Am 18.09.2007 um 09:38 schrieb Greg Best:

I'm trying to archive an NSMutableDictionary where the objects are of type Class. Class doesn't seem to work well with encodeObject:forKey:, so I need to handle it manually. How do I do this?

Well, the method name is encodeOBJECT, and on an cursory research there doesn´t seem emphasis on Class inherits and behaves like any plain NSObject. I would expect serious trouble if arbitrary Class instances get unarchived w/o their code being present...


Nitpicking aside, there is class_getName( ... ) and objc_getClass( ... ) in runtime.h.


_______________________________________________

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


References: 
 >how to get objects of type Class to play with NSCoder? (From: Greg Best <email@hidden>)

  • Prev by Date: Fwd: method confusion
  • Next by Date: Re: What's the argument aTableView used for?
  • Previous by thread: how to get objects of type Class to play with NSCoder?
  • Next by thread: Re: how to get objects of type Class to play with NSCoder?
  • Index(es):
    • Date
    • Thread