• 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: Best design pattern for un-archiving instances of shared resources?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best design pattern for un-archiving instances of shared resources?


  • Subject: Re: Best design pattern for un-archiving instances of shared resources?
  • From: Uli Kusterer <email@hidden>
  • Date: Sat, 20 Oct 2007 11:03:28 +0200

Am 19.10.2007 um 02:06 schrieb Barry Wark:
So, question for the gurus:
Is there a better pattern for solving the problems I've outlined
above, particularly one that doesn't require a similar hack for every
subclass?

Did you check whether NSUnarchiver and NSArchiver have any useful methods? The NSArchiverCallback informal protocol for NSObject sounds like it could solve your problem or alleviate it a bit. It seems to allow providing a different object to archive in place of the current object.


NSUnarchiver also has -replaceObject:withObject:, which looks like it's the opposite.

I hope that hasn't been mentioned yet, I haven't yet managed to go up-thread on this one.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de



_______________________________________________

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: Best design pattern for un-archiving instances of shared resources?
      • From: "Barry Wark" <email@hidden>
References: 
 >Best design pattern for un-archiving instances of shared resources? (From: "Barry Wark" <email@hidden>)

  • Prev by Date: Re: AppleScript running under Cocoa - major speed issue
  • Next by Date: NSDate offset woes
  • Previous by thread: Re: Best design pattern for un-archiving instances of shared resources?
  • Next by thread: Re: Best design pattern for un-archiving instances of shared resources?
  • Index(es):
    • Date
    • Thread