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: Graham Cox <email@hidden>
- Date: Wed, 24 Oct 2012 08:58:31 +1100
On 24/10/2012, at 2:31 AM, ecir hana <email@hidden> wrote:
> I tried to return YES in both applicationShouldOpenUntitledFile: and
> applicationOpenUntitledFile: of the app delegate without luck.
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.
--Graham
_______________________________________________
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