Re: Carbonish aliases for Cocoa?
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.