• 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: Setting the position of new windows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting the position of new windows


  • Subject: Re: Setting the position of new windows
  • From: Seth Willits <email@hidden>
  • Date: Wed, 13 Mar 2013 14:29:39 -0700

On Mar 13, 2013, at 2:20 PM, Steve Mills wrote:

> I've spent most of the day researching and coding this, but still don't have it perfect. I need to position our new document windows so they aren't covered by palettes that might be visible. I've done this in my window controller's windowDidLoad method, as was suggested somewhere. I'm able to calculate the new frame and set it with setFrame. This works on the first window. But if I create a 2nd window, it is going through what looks like the default cascading code, mostly ignoring the setFrame I just did (the size is right, but it moves it around).
>
> Am I going about this in the wrong place, or do I have to do a whole bunch more stuff to make this work, like subclassing NSWindow and overriding cascadeTopLeftFromPoint or some such thing?

If you don't want the cascading, you can turn that off in the window controller (setShouldCascadeWindows:).


--
Seth Willits





_______________________________________________

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: 
 >Setting the position of new windows (From: Steve Mills <email@hidden>)

  • Prev by Date: Re: Setting the position of new windows
  • Next by Date: Re: Setting the position of new windows
  • Previous by thread: Re: Setting the position of new windows
  • Next by thread: CoreData: sorting on a computed attribute
  • Index(es):
    • Date
    • Thread