Interesting. Coming from the world of iPhone dev, this seems wrong to
me. On the iPhone, a view's controller is in the chain by default.
Putting the following into GroupListController's awakeFromNib made it
work just fine:
NSResponder * next = [groupList nextResponder];
[groupList setNextResponder:self];
[self setNextResponder:next];
Thanks!
Dave
On Apr 25, 2009, at 11:32 AM, Jim Correia wrote:
On Sat, Apr 25, 2009 at 1:19 PM, Dave DeLong <davedel...@me.com>
wrote:
It seems that the responder chain is not set up during awakeFromNib
(even
though all the outlets are), because I moved the loop to my addGroup:
IBAction, where it printed off my chain. My GroupListController
was not in
the chain. Shouldn't it be? Doesn't a view's controller get a
chance to
respond to anything that the view doesn't respond to?
No, an NSViewController is an NSResponder subclass, but if you want it
to be part of the responder chain, it is your responsibility to
link/unlink it into the responder chain at the right place when
appropriate.
- Jim
_______________________________________________
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