Re: How to reference a NSDocument from a NSView?

2008-08-19 Thread Jeff Mesnil
On Tue, Aug 19, 2008 at 1:37 PM, Jeff Mesnil <[EMAIL PROTECTED]> wrote: > The application is behaving as expected, the model (the ovals) are > kept in MyDocument and the DrawView just draws them. > But I was wondering if that was the "right" Cocoa way to do so, to use &

How to reference a NSDocument from a NSView?

2008-08-19 Thread Jeff Mesnil
o do so, to use an IBOutlet to connect a NSView to a NSDocument. Is there another way to have a reference to the document from one view of the application? regards, jeff -- Jeff Mesnil [EMAIL PROTECTED] http://jmesnil.net/weblog/ ___ Cocoa-dev mailing l