Thanks Laurent, all worked perfectly!

On 13 Apr 2011, at 10:23, Laurent Daudelin wrote:

> On Apr 12, 2011, at 23:27, Artemiy Pavlov wrote:
> 
>> Hi all!
>> 
>> I have previously written plugins with custom views, but I am now working on 
>> a standalone app and have a couple very basic questions:
>> 
>> - I would like to disable my app from maximizing on the screen. 
>> 
>> - When the app's window is closed, I would like the app to quit and not stay 
>> active in the dock.
> 
> I'm assuming that when you say "my app", you really mean "my window". Just 
> make sure in Interface Builder that your window is not resizable (the 
> "Resize" checkbox in the inspector is turned off).
> 
> You can implement the applicationShouldTerminateAfterLastWindowClosed: in 
> your NSApplicationDelegate instance to return YES, signaling to the 
> NSApplication object that it should terminate when the last window is closed.
> 
> -Laurent.
> -- 
> Laurent Daudelin
> AIM/iChat/Skype:LaurentDaudelin                               
> http://www.nemesys-soft.com/
> Logiciels Nemesys Software                                    
> [email protected]
> 

_______________________________________________

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]

Reply via email to