Re: "Application quits when last window closed" = YES
Re: "Application quits when last window closed" = YES
- Subject: Re: "Application quits when last window closed" = YES
- From: "Rick C." <email@hidden>
- Date: Fri, 10 Oct 2014 07:31:57 +0800
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication {
return YES;
}
On Oct 10, 2014, at 7:24 AM, Carl Hoefs <email@hidden> wrote:
> A while back I wrote a single-window OS X application where I specified an Info.plist entry having a key like "Application quits when last window closed” and set it to YES. Worked great, no code needed. Now I’m writing another single-window OS X app but I can’t find that key as one of the options for Info.plist using Xcode 6. Is there a new way of doing a “Red Exit” or am I just overlooking it?
> -Carl
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden