On Mar 3, 2016, at 10:56 PM, Seth Willits <sli...@araelium.com> wrote:
> 
>> On Mar 3, 2016, at 2:46 PM, Daryle Walker <dary...@mac.com> 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 (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