Re: Can't keep untitled windows from opening!
Re: Can't keep untitled windows from opening!
- Subject: Re: Can't keep untitled windows from opening!
- From: WT <email@hidden>
- Date: Thu, 31 Mar 2011 13:33:17 -0300
On Mar 31, 2011, at 1:25 PM, Carlos Eduardo Mello wrote:
> Hi everyone,
>
> I've implemented both methods bellow, but my document-based app still opens untitled windows at start-up and when reactivated from the dock. The methods are placed in the window's delegate (MyDocument.m) but they never get called. Does anybody have an idea why this is happening?
>
> - (BOOL)applicationShouldOpenUntitledFile:(NSApplication *)sender
> {
> NSLog(@"Calling [applicationShouldOpenUntitledFile]...");
> return NO;
> }
>
> - (BOOL)applicationShouldHandleReopen:(NSApplication *)sender hasVisibleWindows:(BOOL)flag
> {
> NSLog(@"Calling [applicationShouldHandleReopen]...");
> return NO;
> }
>
> Thanks,
>
> Carlos.
Are you sure the window delegate is being set correctly and isn't nil?
WT
_______________________________________________
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