Re: Trying to get flagsChanged: to work
Re: Trying to get flagsChanged: to work
- Subject: Re: Trying to get flagsChanged: to work
- From: Dave DeLong <email@hidden>
- Date: Sat, 25 Apr 2009 11:46:56 -0600
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 <email@hidden>
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 (email@hidden)
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:
This email sent to email@hidden