• 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: How to not open a new document at app start up (init NSDocument or NSWindowController ?)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to not open a new document at app start up (init NSDocument or NSWindowController ?)


  • Subject: Re: How to not open a new document at app start up (init NSDocument or NSWindowController ?)
  • From: jean-michel daix <email@hidden>
  • Date: Fri, 11 Oct 2002 17:49:56 +0200

Thank you all for your help !
It works now thanks to applicationShouldOpenUntitledFile. So I did this
(Should modify to use the panel preference):

// DXAppDelegate.h

@interface DXAppDelegate : NSObject {
}

- (BOOL) applicationShouldOpenUntitledFile: (NSApplication *) sender;

@end


// DXAppDelegate.m


#import "DXAppDelegate.h"

@implementation DXAppDelegate

- (BOOL) applicationShouldOpenUntitledFile: (NSApplication *) sender
{
return NO;
}

@end

I also found documentation there :

<http://www.mactech.com/articles/mactech/Vol.15/15.05/May99Tips/>


-----------------------------------
Jean-Michel DAIX / <email@hidden>
Sorry, I9m French !

visit <http://www.adforum.com>
_______________________________________________
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.

  • Prev by Date: Re: is protected broken, or am I?
  • Next by Date: Re-opening OpenGLView
  • Previous by thread: Need advice on a custom UI component
  • Next by thread: Re-opening OpenGLView
  • Index(es):
    • Date
    • Thread