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

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


  • Subject: how to get objects of type Class to play with NSCoder?
  • From: Greg Best <email@hidden>
  • Date: Tue, 18 Sep 2007 00:38:53 -0700

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?

I'm guessing I need to pick apart the dictionary and manually archive something I can recreate the Class object from, most likely a string holding the class name, but I can't seem to find any documentation on Class. Is there a way to request the class name as an NSString, and to create a Class given an NSString holding it's name?

Thanks.
_______________________________________________

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


  • Follow-Ups:
    • Re: how to get objects of type Class to play with NSCoder?
      • From: Milo Bird <email@hidden>
    • Re: how to get objects of type Class to play with NSCoder?
      • From: Thomas Engelmeier <email@hidden>
  • Prev by Date: Re: IBPalette missing class information?
  • Next by Date: Fwd: method confusion
  • Previous by thread: Re: What's the argument aTableView used for?
  • Next by thread: Re: how to get objects of type Class to play with NSCoder?
  • Index(es):
    • Date
    • Thread