• 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
multi-document-type NSDocument-based app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

multi-document-type NSDocument-based app


  • Subject: multi-document-type NSDocument-based app
  • From: email@hidden
  • Date: Sun, 18 Feb 2007 10:59:08 +0100 (CET)
  • Importance: Normal

      Hello all,

 I've got a working Cocoa-made text editor and I should like to extend its
scope by
making it able to open RTF or .txt files. To that end, I added new
document type specifications
in the Info.plist file (copying it from the source code for TextEdit).
According to the documentation,
NSDocumentController determines the list of "openable" files from the data
in Info.plist. But if I launch the
"Open" panel, it still tells me that the only openable files are the
native files created by my app. What am
I missing ?

   I'd also be interested in any examples of source projects that combine
NSDocument and open/save ability
with multiple document types (The nearest examples I know are "TextEdit"
which doesn't use NSDocument, and "Sketch" which implements open/save only
for one type of document).


                                      Thanks in advance,

                                                                                 Ewan






_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

  • Prev by Date: Toolbar icon highlighting
  • Next by Date: Re: NSOpenPanel instantly closing
  • Previous by thread: Re: Toolbar icon highlighting
  • Next by thread: NSMatrix of NSImageCells er help!
  • Index(es):
    • Date
    • Thread