Sending reference of MyDocument in notifications?
Sending reference of MyDocument in notifications?
- Subject: Sending reference of MyDocument in notifications?
- From: <email@hidden>
- Date: Fri, 27 Feb 2004 19:04:46 +0000
Hi there. I have a doc-based app, and in the app's MainMenu.nib file I have a window with an NSOutlineView. Now, my Controller class for this window needs to keep a reference of the active document (MyDocument). I can do this with Notifications, I can get that part working, but how would I have a reference to the active document? Do I send a pointer to the controller (for the OutlineView), or a reference? Basically, if I have a reference to the active document in the Controller class for my OutlineWindow, then I can send messages to it based on choices made in the OutlineView.
I hope I've explained it correctly. I basically need to have a line of communication between the active NSDocument and the Controller for my OutlineView. BTW, I'm still writing the old way with Project Builder and not using Bindings as I haven't had the time to fully learn it, and haven't had problems with PB in Panther so far. Thanks for everything!
James McConnell
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.