• 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: Why can I make a new document this way?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why can I make a new document this way?!


  • Subject: Re: Why can I make a new document this way?!
  • From: Charles Srstka <email@hidden>
  • Date: Wed, 17 Mar 2004 17:08:23 -0600

On Mar 17, 2004, at 3:31 AM, Angela Brett wrote:

I suspect that if you don't ever want to create an untitled document, what you really want to do is make your app a viewer rather than an editor. You can do that by editing your app's document types (under 'Info.plist entries' in the target settings.) Go through the list of documents and make sure the Role: pop-up menu is set to Viewer for types you don't want to be able to edit.

Unfortunately, my app *is* a viewer rather than an editor. It doesn't stop this behavior from occurring. :-(

I may have to make an NSDocumentController subclass again... argh. You'd think there would have to be a better way...

On Mar 17, 2004, at 10:23 AM, Darkshadow wrote:

Hmm, that's funny, trying to do that in the test app I wrote results in this line from Script Editor:

AppleScript Error
testApp got an error: Can't make a document.

Try setting NSAppleScriptEnabled to YES in the Info.plist - you need to do this before it will accept AppleScript commands.

Charles
_______________________________________________
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.


References: 
 >Why can I make a new document this way?! (From: Charles Srstka <email@hidden>)
 >Re: Why can I make a new document this way?! (From: Angela Brett <email@hidden>)

  • Prev by Date: Re: [ANN] Notification Watcher preview
  • Next by Date: Re: Wakeup/Sleep?
  • Previous by thread: Re: Why can I make a new document this way?!
  • Next by thread: Re: Why can I make a new document this way?!
  • Index(es):
    • Date
    • Thread