Skip navigation.
 
mlRe: Stacked NSDocument Windows
FROM : Matt Neuburg
DATE : Sun Aug 20 18:17:48 2006

On Sat, 19 Aug 2006 22:45:36 -0700, Omar Qazi <<email_removed>> 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_removed>, <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>

Related mailsAuthorDate
mlStacked NSDocument Windows Omar Qazi Aug 20, 07:45
mlRe: Stacked NSDocument Windows Matt Neuburg Aug 20, 18:17