• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Can't keep untitled windows from opening!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can't keep untitled windows from opening!


  • Subject: Re: Can't keep untitled windows from opening!
  • From: "Gary L. Wade" <email@hidden>
  • Date: Thu, 31 Mar 2011 09:36:53 -0700

These should be in the app delegate.

- Gary L. Wade (Sent from my iPhone)

On Mar 31, 2011, at 9:25 AM, Carlos Eduardo Mello <email@hidden> 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.
>
>
> _______________________________________________
>
> 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
_______________________________________________

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

References: 
 >Can't keep untitled windows from opening! (From: Carlos Eduardo Mello <email@hidden>)

  • Prev by Date: Re: Can't keep untitled windows from opening!
  • Next by Date: Re: Compiling screensaver for 10.5
  • Previous by thread: Re: Can't keep untitled windows from opening!
  • Next by thread: Re: Can't keep untitled windows from opening!
  • Index(es):
    • Date
    • Thread