• 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: newbie window questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie window questions


  • Subject: Re: newbie window questions
  • From: Laurent Daudelin <email@hidden>
  • Date: Wed, 13 Apr 2011 00:23:23 -0700

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@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

  • Follow-Ups:
    • Re: newbie window questions
      • From: Artemiy Pavlov <email@hidden>
References: 
 >newbie window questions (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: newbie window questions
  • Next by Date: Re: newbie window questions
  • Previous by thread: Re: newbie window questions
  • Next by thread: Re: newbie window questions
  • Index(es):
    • Date
    • Thread