• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Subclassing NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Subclassing NSDocumentController
      • From: "Louis C. Sacha" <email@hidden>
  • Prev by Date: Re: Tracking openings of .rsrc files?
  • Next by Date: Re: Subclassing NSDocumentController
  • Previous by thread: Using Search Kit from java-cocoa
  • Next by thread: Re: Subclassing NSDocumentController
  • Index(es):
    • Date
    • Thread