Thanks for the tip!

I do not have my own window controller but I do call


- (void)windowControllerDidLoadNib:(NSWindowController *) aController


whereupon I can call


[aController setShouldCascadeWindows:NO];

When I do that, the windows do not move :-)

On the other hand, after adjusting their initial positions, the windows (with 
two overlapping) now stretch across 1300 pixels.  I hope there are no displays 
narrower than that.

--
Michael P. McLaughlin

From: Jens Alfke <j...@mooseyard.com<mailto:j...@mooseyard.com>>
Date: Thu, 11 Aug 2011 11:48:07 -0400
To: Michael McLaughlin <mp...@mitre.org<mailto:mp...@mitre.org>>
Cc: "cocoa-dev@lists.apple.com<mailto:cocoa-dev@lists.apple.com>" 
<cocoa-dev@lists.apple.com<mailto:cocoa-dev@lists.apple.com>>
Subject: Re: Strange window behavior


On Aug 11, 2011, at 7:51 AM, McLaughlin, Michael P. wrote:

The window, created in Xcode 4, is set to be fixed from top and left.  However, 
every time it is reshown, it is staggered a bit down and to the right.

Does the window have an NSWindowController? If so, you’re probably running into 
the shouldCascadeWindows property. Set it to NO and things should go better.

—Jens
_______________________________________________

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

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

Reply via email to