Re: Strange window behavior
Re: Strange window behavior
- Subject: Re: Strange window behavior
- From: "McLaughlin, Michael P." <email@hidden>
- Date: Thu, 11 Aug 2011 13:21:04 -0400
- Acceptlanguage: en-US
- Thread-topic: Strange window behavior
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 <email@hidden<mailto:email@hidden>>
Date: Thu, 11 Aug 2011 11:48:07 -0400
To: Michael McLaughlin <email@hidden<mailto:email@hidden>>
Cc: "email@hidden<mailto:email@hidden>" <email@hidden<mailto:email@hidden>>
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 (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