• 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
Documents which aren't NSDocuments
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Documents which aren't NSDocuments


  • Subject: Documents which aren't NSDocuments
  • From: Angela Brett <email@hidden>
  • Date: Tue, 13 Aug 2002 20:12:53 +1200

Hello,

I'm wondering how I can make files with a particular extension open in my application, but without making my application document-based. The files are just different sets of preferences and scores for a game - opening one will simply switch the game to using those preferences. The user can edit, add and switch the option sets in the Preferences window, but it would be nice if they could also doubleclick on one of the files in the Finder, just like I used to do with Eudora preference files before it could handle multiple personalities. I want them to be in their own files (rather than just stored using NSUserDefaults) so that they can be passed between users and also to make it easier to add new default option sets.

There doesn't need to be a nib or window controller for the 'document' so it seems as though it would be overkill to use NSDocument, I want my preference controller to handle them. I just need a way of associating these preference files with my application and knowing when one is opened. [How] can it be done?

Thanks for any help... I vaguely recall somebody asking this sort of question on the list before but I can't find it in the archives.
--
Angela Brett
email@hidden
http://acronyms.co.nz/angela
_______________________________________________
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: Documents which aren't NSDocuments
      • From: Marcel Weiher <email@hidden>
  • Prev by Date: Re: Parts of a Method
  • Next by Date: Re: Documents which aren't NSDocuments
  • Previous by thread: Re: Parts of a Method
  • Next by thread: Re: Documents which aren't NSDocuments
  • Index(es):
    • Date
    • Thread