Re: how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread Matt Neuburg
On Oct 9, 2014, at 10:03 AM, glenn andreas wrote: > (typed in mail) > > if ([[vc class] instanceMethodForSelector: selector] != [[vc superclass] > instanceMethodForSelector: selector]) { > // vc's class implements an instance method that is different from it's > superclass - i.e., it ha

Re: how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread glenn andreas
(typed in mail) if ([[vc class] instanceMethodForSelector: selector] != [[vc superclass] instanceMethodForSelector: selector]) { // vc's class implements an instance method that is different from it's superclass - i.e., it has overridden it } On Oct 9, 2014, at 11:56 AM, Matt Neuburg w

how do you suppose targetViewControllerForAction:sender: works?

2014-10-09 Thread Matt Neuburg
From the WWDC 2014 video 216: "targetViewControllerForAction works by looking at the View Controller and seeing if it's _overwritten_ the action method that you've passed in." From Kyle Sluder's blog: "-targetViewControllerForAction:sender: ... will then determine whether the instance’s method