Re: Open untitled file in Document-based app
Re: Open untitled file in Document-based app
- Subject: Re: Open untitled file in Document-based app
- From: ecir hana <email@hidden>
- Date: Wed, 24 Oct 2012 11:05:20 +0200
On Tue, Oct 23, 2012 at 11:58 PM, Graham Cox <email@hidden> wrote:
>
> If you return YES from -applicationOpenUntitledFile: the application will
> NOT open a new file - it has assumed that this method has done it and by
> returning YES that's what you're telling it. You want to either return NO
> or else not override this method at all.
>
>
Thanks for the reply!
I tried both to return NO and to not overriding the method but it still
wont open any window at start up. The method(s) are not even called..? I
think it has something to do with 10.8 restoring the previous state but I'm
not sure how to force it to open an window if there was no window at
application exit.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please 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