• 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: 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

References: 
 >newbie window questions (From: Artemiy Pavlov <email@hidden>)

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