I think you want to use -setShouldCascadeWindows:NO.

On Mar 13, 2013, at 2:20 PM, Steve Mills <smi...@makemusic.com> 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 (Cocoa-dev@lists.apple.com)
> 
> 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:
> https://lists.apple.com/mailman/options/cocoa-dev/kperry%40apple.com
> 
> This email sent to kpe...@apple.com

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to