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

Re: Documents which aren't NSDocuments


  • Subject: Re: Documents which aren't NSDocuments
  • From: Marcel Weiher <email@hidden>
  • Date: Tue, 13 Aug 2002 11:42:19 +0200

On Tuesday, August 13, 2002, at 10:12 Uhr, Angela Brett wrote:


I'm wondering how I can make files with a particular extension open in my application, but without making my application document-based.

Sure, absolutely no problem.

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?

Just do what you would normally do for the association: edit the Info.plist, either manually or using Project Builder's specialized tab. Your application object or its delegate will then receive the

- (BOOL)application:(NSApplication *)sender openFile:(NSString *)filename

message.

Marcel

--
Marcel Weiher Metaobject Software Technologies
email@hidden www.metaobject.com
Metaprogramming for the Graphic Arts. HOM, IDEAs, MetaAd etc.
_______________________________________________
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: Angela Brett <email@hidden>
References: 
 >Documents which aren't NSDocuments (From: Angela Brett <email@hidden>)

  • Prev by Date: Documents which aren't NSDocuments
  • Next by Date: Re: Documents which aren't NSDocuments
  • Previous by thread: Documents which aren't NSDocuments
  • Next by thread: Re: Documents which aren't NSDocuments
  • Index(es):
    • Date
    • Thread