Re: Stacked NSDocument Windows
Re: Stacked NSDocument Windows
- Subject: Re: Stacked NSDocument Windows
- From: Matt Neuburg <email@hidden>
- Date: Sun, 20 Aug 2006 09:17:48 -0700
- Thread-topic: Stacked NSDocument Windows
On Sat, 19 Aug 2006 22:45:36 -0700, Omar Qazi <email@hidden> said:
>Hey Everyone
>
> I am working on a project in Cocoa. I have added a new NSDocument
>subclass to it, but when a new document is created the new window
>appears right above the old one. I have noticed in the Cocoa
>NSDocument Application template, the windows all stack neatly one
>after the other. How can I reproduce this behavior manually?
If your app is based on the Cocoa Document-based Application template, it
will happen all by itself. Otherwise, that's right, you *will* have to
reproduce it manually. For one example of how to do this, see the code for
TextEdit (on your hard disk); I think it just calls
cascadeTopLeftFromPoint:. m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
<http://www.amazon.com/gp/product/0596102119>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden