Re: Staggering new windows
Re: Staggering new windows
- Subject: Re: Staggering new windows
- From: Daryle Walker <email@hidden>
- Date: Tue, 08 Mar 2016 04:36:38 -0500
On Mar 3, 2016, at 10:56 PM, Seth Willits <email@hidden> wrote:
>
>> On Mar 3, 2016, at 2:46 PM, Daryle Walker <email@hidden> wrote:
>>
>> This new Xcode project (with storyboards) makes new windows at the same coordinates, on top of each other. Just the ever increasing shadow gives that behavior away. Is there a way to (automatically) get that old Mac behavior of staggered windows? I think it was 20 pixels down and right.
>
>
> Window Cascading:
> https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/WinPanel/Tasks/SizingPlacingWindows.html
Although the docs say it defaults to TRUE, it doesn’t work like that in practice.
On some random Mac programming page, I saw code explicitly setting cascading to TRUE. I looked at that and wondered if I can do better. Since the setting looks like a property, I added “shouldCascadeWindows” to the User-Defined Runtime Attributes section of the window controller’s settings in Interface Builder. I set the attribute to Boolean and its value to TRUE, and sure enough it worked!
—
Daryle Walker
Mac, Internet, and Video Game Junkie
darylew AT mac DOT com
_______________________________________________
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