Subclassing NSDocumentController
Subclassing NSDocumentController
- Subject: Subclassing NSDocumentController
- From: Bruce Truax <email@hidden>
- Date: Mon, 12 Jul 2004 22:26:08 -0400
I need to override the openDocument and newDocument methods in
NSDocumentController. I have created a class called FileHandler which is a
subclass of NSDocumentController with the new methods and some additional
instance variables.
Now that I have done this I want FileHandler to be the First Responder for
my MainMenu.nib so that when the user selects Open or New, the new methods
are called.
I have dragged the FileHandler.h file into the MainMenu.nib, but how do I
make this subclass act as the first item in the responder chain ahead of
NSDocumentController?
--
____________________________________________________________
Bruce E. Truax email: email@hidden
Optical Engineering Consultant
Diffraction Limited Design LLC
388 Wedgewood Road voice: 860-276-0450
Southington, CT 06489 fax: 860-620-9026
http://www.dld-llc.com
_____________________________________________________________
_______________________________________________
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.