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 protected])
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]