Re: newbie window questions
Re: newbie window questions
- Subject: Re: newbie window questions
- From: Quincey Morris <email@hidden>
- Date: Wed, 13 Apr 2011 00:13:20 -0700
On Apr 12, 2011, at 23:27, Artemiy Pavlov wrote:
> - I would like to disable my app from maximizing on the screen.
Look into the window delegate method 'windowWillUseStandardFrame:defaultFrame:' or perhaps 'windowShouldZoom:toFrame:':
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSWindowDelegate_Protocol/Reference/Reference.html
This would likely be implemented in a window controller owning the window that you want to prevent from zooming, or (if it's a single-window application) you might use the app delegate as the window's delegate, but a window controller is the better choice.
> - When the app's window is closed, I would like the app to quit and not stay active in the dock.
Look into the application delegate method 'applicationShouldTerminateAfterLastWindowClosed':
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/NSApplicationDelegate_Protocol/Reference/Reference.html
_______________________________________________
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