Re: Cocoa Document-Based Applications
Re: Cocoa Document-Based Applications
- Subject: Re: Cocoa Document-Based Applications
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 20 May 2002 16:57:44 -0700
On Monday, May 20, 2002, at 04:46 PM, Morgan Grainger wrote:
>
Hello all,
>
>
When I go to create a new Cocoa document-based application,
>
Project Builder automatically creates all the files, which is
>
great. But when I build and run the new project, Project
>
Builder creates a new window. It also does this when I click
>
on the application icon in the dock and no other windows are
>
open in the application. Where is the code where it is doing
>
this and how do I stop it?
Implement
- (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
In your application delegate.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.