• 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: Carbonish aliases for Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Carbonish aliases for Cocoa?


  • Subject: Re: Carbonish aliases for Cocoa?
  • From: Chris Hanson <email@hidden>
  • Date: Sun, 1 Dec 2002 18:36:46 -0600

At 11:58 PM +0000 12/1/02, m wrote:
Sorry, I bit new at Cocoa so bear with me...

By "storable in an NSDictionary" I meant that you should be able to write the dictionary out to disk and restore it later, and still be able to reconstitute the member objects. I was under the impression that in order to be saveable/restorable in this fashion, objects needed conform to the NSCoding protocol. Is this not correct?

Ah. That makes sense. If you're referring to storing the NSDictionary as an XML property list, NSCoding won't even do what you want. In that case, what you'll want to do is get an NSData from a BDAlias object and use that in your dictionary. Then, when you need to use it as an alias, just create a temporary BDAlias object with that data.

-- Chris

--
Chris Hanson | Email: email@hidden
bDistributed.com, Inc. | Phone: +1-847-372-3955
Making Business Distributed | Fax: +1-847-589-3738
http://bdistributed.com/ | Personal Email: email@hidden
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • UseDictionary from Cocoa app
      • From: "Steven W. Riggins" <email@hidden>
    • Re: Carbonish aliases for Cocoa?
      • From: email@hidden
References: 
 >Re: Carbonish aliases for Cocoa? (From: m <email@hidden>)

  • Prev by Date: Re: Carbonish aliases for Cocoa?
  • Next by Date: Re: Carbonish aliases for Cocoa?
  • Previous by thread: Re: Carbonish aliases for Cocoa?
  • Next by thread: Re: Carbonish aliases for Cocoa?
  • Index(es):
    • Date
    • Thread