Re: Override load/save for NSDictionary ?
Re: Override load/save for NSDictionary ?
- Subject: Re: Override load/save for NSDictionary ?
- From: Charles Steinman <email@hidden>
- Date: Fri, 5 Dec 2008 07:01:52 -0800 (PST)
----- Original Message ----
> From: Mark Thomas <email@hidden>
> To: "email@hidden" <email@hidden>
> Sent: Friday, December 5, 2008 1:08:12 AM
> Subject: Override load/save for NSDictionary ?
>
> Hi All,
> Does anybody have any thoughts on how you could subclass or hook into
> NSDictionary/NSMutableDictionary classes, so that I could provide my own
> file format instead of the default file format which are used today (i.e.
> Text or binary plist format). As I still want the flexibility of dictionary
> but I don't want the default file formats.
>
> Ideally it would be good if I could create
> NSDictionary/NSMutableDictionary with a NSData object, but there doesn't
> seem to be a way to pass in the info this way.
Keep in mind that you'll have to handle byte-order conversion if you intend to support multiple architectures.
Cheers,
Chuck
_______________________________________________
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