Another newbie question on the document architecture
Another newbie question on the document architecture
- Subject: Another newbie question on the document architecture
- From: Mike Abdullah <email@hidden>
- Date: Fri, 13 Jan 2006 19:30:58 +0000
Apologies for having to ask another question of people, but here goes.
I have set up a relatively simple document structure in my app. At
the centre is NSDocumentController. For every document that is
loaded, an instance of my subclass of NSDocument is loaded. My
subclass then creates an instance of my subclass of
NSWindowController, whose job it is to handle displaying the window.
Having created the NSWindowController, my NSDocument basically does
nothing. However, some times my NSDocument recieves a message
requesting for it to fill in a NSTextField in the document window
with a custom string.
So my question is, how do I achieve this? I see no easy way of
requesting from within NSDocument anything that affects the
NSWindowController it has created. I see there is a method which
gives you an array containing all the window controllers that the
document has. However, I do intend to add more window controllers to
my document class in the future so I feel that simply acting upon the
first window controller in the list probably isn't a good idea.
I'm sure people have this kind of issue all the time, so I assume
there is a fairly standard, simple way of dealing with it?
Mike Abdullah.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden