Cocoa coding style : How to refer to a document
Cocoa coding style : How to refer to a document
- Subject: Cocoa coding style : How to refer to a document
- From: Julien Palmas <email@hidden>
- Date: Mon, 4 Apr 2005 13:53:20 +0900
I've almost finished developing my first document-based application.
During the development stages, I've experiences a lot of situations
that forced me to rethink my application design. I must say that I am
in no way a professional programmer.
One of the more annoying things have been the way to refer to the
instance of NSDocument. My application loads different nibs according
to the type of file I open, and some of those nibs have buttons that
trigger actions which would like to access the NSDocument subclass
instance.
The only workaround I found was to add a reference to the document in
the nib owner class. And when the nib owner is initialised, by the
document, I set this reference.
I think this is quite ugly and would like to know if there is another
way to do so.
_______________________________________________
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