On Mar 12, 2010, at 1:17 PM, David Blanton wrote: > How does one get a views acceptsFirstResponder method called without having > to click on the view?
You may be looking for -makeFirstResponder: in the NSWindow class. -acceptsFirstResponder should be called automatically... If not, you'll need to provide more details on what you are trying to accomplish. > If a class subclasses NSResponder so it can get events how does one get an > instance of this class in the responder chain? You can use -setNextResponder: in the NSResponder class to modify the responder chain and insert your own stuff. I would suggest reading the Cocoa Event-Handling Guide ( http://bit.ly/9hx11x ). There is a lot of good, important stuff in there, including stuff on the responder chain. I might also suggest picking up a copy of Cocoa Design Patterns (Paperback) ~ Erik M. Buck • ISBN-10: 0321535022 • ISBN-13: 978-0321535023 There is a chapter in this book on the responder chain and, basically, everything else in the book is stuff you're going to want to know. _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com