Re: Setting the position of new windows
Re: Setting the position of new windows
- Subject: Re: Setting the position of new windows
- From: Kevin Perry <email@hidden>
- Date: Wed, 13 Mar 2013 14:29:36 -0700
I think you want to use -setShouldCascadeWindows:NO.
On Mar 13, 2013, at 2:20 PM, Steve Mills <email@hidden> 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?
>
> --
> Steve Mills
> office: 952-818-3871
> home: 952-401-6255
> cell: 612-803-6157
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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