• 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: NSDocument subclass (newbie) questionŠ
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDocument subclass (newbie) questionŠ


  • Subject: Re: NSDocument subclass (newbie) questionŠ
  • From: "Louis C. Sacha" <email@hidden>
  • Date: Sun, 23 Jan 2005 18:27:28 -0800

Hello...

You don't need to make any connections in InterfaceBuilder to do this, the relevant info is actually stored in your applications Info.plist file.

In Xcode, select your application in the "Targets" group, and open the inspector. One of the tabs is "Properties", and you can define which NSDocument subclass is used for any filetypes that your application will be able to open.

All you have to do is add/edit the entries in the "Document Types" section.

Hope that helps,

	Louis


Where do you tell Cocoa what your document subclass is? I looked through the documentation, and saw references to the "file's owner". However, in the Sketch app, this points to a window controller class, not the NSDocument subclass. There's other references to the info.plist file, but in the Sketch example, that didn't have any reference to the NSDocument subclass name.

Thanks for any help!

Mark


_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: NSDocument subclass (newbie) question Š
      • From: mark <email@hidden>
References: 
 >NSDocument subclass (newbie) question… (From: Mark Dawson <email@hidden>)

  • Prev by Date: NSDocument subclass (newbie) question…
  • Next by Date: Re: NSDocument subclass (newbie) question Š
  • Previous by thread: NSDocument subclass (newbie) question…
  • Next by thread: Re: NSDocument subclass (newbie) question Š
  • Index(es):
    • Date
    • Thread