DocumentController & ApplicationController: messages between them?
DocumentController & ApplicationController: messages between them?
- Subject: DocumentController & ApplicationController: messages between them?
- From: Diggory Laycock <email@hidden>
- Date: Sun, 12 May 2002 02:24:02 +0100
Hi,
I'm building a document based app (quite similar design to the RaiseMan
example in Hilegass' "Cocoa for Mac OS X" ;-) )
I'm having a bit of a conceptual problem and I was wondering if the list
could help.
I have a Class called AppController that is a delegate of NSApplication
and does certain stuff throughout the life of the app.
I also have a class called MyDocument that controls documents
(obviously!)
I have a control (an NSPopUpButton) in the Document's nib that I would
like to populate from application-specific objects (not document
specifc).
Normally I'd just fire-up IB and make the connections, but the two
objects are in different nibs.
So my question is: How do I send a message from my document to another
object that isn't in the same nib?
If I instantiate my AppController in the Document nib then surely I'd
have far too many AppControllers.
Should I "find" the App controller programatically by sending a message
to NSApplication?
Am I missing something blindingly obvious here? Am I fighting the
system?
thanks,
Diggory Laycock
_______________________________________________
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.