Re: Cascading windows
Re: Cascading windows
- Subject: Re: Cascading windows
- From: Mike Abdullah <email@hidden>
- Date: Thu, 06 Dec 2012 00:34:41 +0000
The document architecture already provides proper cascading behaviour. What are you seeing that makes you think you need to implement it yourself instead?
On 5 Dec 2012, at 20:55, Peter Teeson <email@hidden> wrote:
> 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
_______________________________________________
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