Re: references to controllers in document based applications
Re: references to controllers in document based applications
- Subject: Re: references to controllers in document based applications
- From: Michael Babin <email@hidden>
- Date: Sat, 9 Feb 2008 17:35:14 -0600
On Feb 9, 2008, at 3:46 PM, Torsten Curdt wrote:
I also have an AppController class that I need to reference from my
documents. So this brought up a more general question. As the
document handling is encapsulated inside the NSDocumentController -
how do people usually do this? ...getting access to those instances
that are created and controlled by the framework.
Kyle gave you the info about using the responder chain via nil-
targeted actions, so I'll skip over that part. In addition, any object
in your application can get the application controller (the
application object's delegate) by using [NSApp delegate].
- Mike
_______________________________________________
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