FROM : Julien Palmas
DATE : Mon Apr 04 06:53:20 2005
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.
DATE : Mon Apr 04 06:53:20 2005
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.
| Related mails | Author | Date |
|---|---|---|
| Julien Palmas | Apr 4, 06:53 | |
| Julien Palmas | Apr 4, 07:27 |






Cocoa mail archive

