• 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 way to save document level settings?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: best way to save document level settings?


  • Subject: Re: best way to save document level settings?
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sat, 6 Dec 2003 21:21:18 +0100

At 3:17 Uhr -0500 06.12.2003, Scott Anguish wrote:
this is a bad idea. It depends on the application wrapper being writable.

I think he meant the com.mycompany.myapplication.plist in ~/Library/Preferences/, not the Info.plist.

you could save it to the defaults on a per-document basis

This is one moment where I think you should be using resources. You could use Nathan Day's NDResourceFork wrapper class. Simply archive the dictionary containing column info and all that into an NSData, and then write that NSData to a resource in the document's resource fork using NDResourceFork.

This has the advantage that your file format doesn't change and you get to keep the data with each document. And if the resource fork is lost during transfer, it's not really that bad after all.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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:
    • Re: best way to save document level settings?
      • From: Scott Anguish <email@hidden>
References: 
 >best way to save document level settings? (From: Donald Hall <email@hidden>)
 >Re: best way to save document level settings? (From: Scott Anguish <email@hidden>)

  • Prev by Date: Re: HelpViewer.app and Preview.app Toolbar Nav?
  • Next by Date: Re: Toolbars
  • Previous by thread: Re: best way to save document level settings?
  • Next by thread: Re: best way to save document level settings?
  • Index(es):
    • Date
    • Thread