• 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: how do you suppose targetViewControllerForAction:sender: works?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Subject: Re: how do you suppose targetViewControllerForAction:sender: works?
  • From: Matt Neuburg <email@hidden>
  • Date: Thu, 09 Oct 2014 10:10:30 -0700

On Oct 9, 2014, at 10:03 AM, glenn andreas <email@hidden> 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 has overridden it
> }
>

Yes, I think that's about right. (It isn't the superclass; it looks right at UIViewController, which must also implement the method somehow. But that's minor.) Thanks! Tricky-wicky... m.

--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do
iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html



_______________________________________________

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


References: 
 >how do you suppose targetViewControllerForAction:sender: works? (From: Matt Neuburg <email@hidden>)
 >Re: how do you suppose targetViewControllerForAction:sender: works? (From: glenn andreas <email@hidden>)

  • Prev by Date: Re: how do you suppose targetViewControllerForAction:sender: works?
  • Next by Date: Re: Table of TextViews
  • Previous by thread: Re: how do you suppose targetViewControllerForAction:sender: works?
  • Next by thread: Re: PushKit dyld errors on 64bit
  • Index(es):
    • Date
    • Thread