Re: How to not open a new document at app start up (init NSDocument or NSWindowController ?)
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.