Cascading windows
Cascading windows
- Subject: Cascading windows
- From: Peter Teeson <email@hidden>
- Date: Wed, 05 Dec 2012 15:55:43 -0500
Xcode 4.5.2, Lion 10.7.5
My app is a Document app and I implemented -(void)makeWindowControllers.
It could have several documents open at the same time.
In particular I want to cascade the window when a New document is opened.
I've read up on this and am aware of the NSWindow method
- (NSPoint)cascadeTopLeftFromPoint:(NSPoint)topLeft]; // in screen coordinates!!
So do I implement the cascading algorithm my WindowController? If so in which method?
(a) initWithWindowNibName after the nib is instantiated?
(b) windowDidLoad?
(c) or somewhere else entirely?
Finally I am considering an NSPoint (static?) in my appDelegate to store the last used NSPoint.
Does this approach seem correct? If not what would you suggest?
I did Google for algorithm and code but nothing helpful popped up.
TIA for your comments.
Peter
_______________________________________________
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