Re: how to get objects of type Class to play with NSCoder?
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