• 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: Override load/save for NSDictionary ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Override load/save for NSDictionary ? (From: Mark Thomas <email@hidden>)

  • Prev by Date: Re: Asynchronous timers (without a run loop)
  • Next by Date: Re: [NSTextView complete:] popup menu delay before hiding
  • Previous by thread: Re: Override load/save for NSDictionary ?
  • Next by thread: Re: Override load/save for NSDictionary ?
  • Index(es):
    • Date
    • Thread