• 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: Trying to get flagsChanged: to work
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Trying to get flagsChanged: to work
      • From: "Sean McBride" <email@hidden>
References: 
 >Trying to get flagsChanged: to work (From: Dave DeLong <email@hidden>)
 >Re: Trying to get flagsChanged: to work (From: Dave DeLong <email@hidden>)
 >Re: Trying to get flagsChanged: to work (From: Jim Correia <email@hidden>)

  • Prev by Date: Re: figuring out which TableView I am?
  • Next by Date: Re: problems with live resize of NSTextView
  • Previous by thread: Re: Trying to get flagsChanged: to work
  • Next by thread: Re: Trying to get flagsChanged: to work
  • Index(es):
    • Date
    • Thread