• 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
Re: Subclassing NSDocumentController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subclassing NSDocumentController


  • Subject: Re: Subclassing NSDocumentController
  • From: Ben Dougall <email@hidden>
  • Date: Wed, 14 Jul 2004 14:39:06 +0100

On Wednesday, July 14, 2004, at 06:44 am, Louis C. Sacha wrote:

Hello...

You might want to take a look at the Cocoa conceptual topic on event handling:

http://developer.apple.com/documentation/Cocoa/Conceptual/ BasicEventHandling/index.html

from that:

The first responder is typically the selected NSView within the NSWindow, and its next responder is its containing NSView (also called its superview), and so on up to the NSWindow itself.

i'm just on the responders and keyboard events chapter of Hillegass's book (1st version) and in the little app in that chapter (chapter 14) the responder chain is dictated by connecting the nextKeyView's in interface builder. the views being assigned nextKeyView are not at all necessarily superviews -- there seems to be a contradiction there.

also, in the app from the book, when the custom view gets clicked on when it wasn't first responder acceptsFirstResponder gets called twice, and when the custom view gets tabbed to acceptsFirstResponder gets called four times. -- is this usual / to be expected or have i done something wrong do you think?

thanks, ben
_______________________________________________
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>
References: 
 >Re: Subclassing NSDocumentController (From: "Louis C. Sacha" <email@hidden>)

  • Prev by Date: Re: UI interaction during long operation
  • Next by Date: Any Cocoa/Obj-c Report Engines?
  • Previous by thread: Re: Subclassing NSDocumentController
  • Next by thread: Re: Subclassing NSDocumentController
  • Index(es):
    • Date
    • Thread