Re: Subclassing NSDocumentController
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.