• 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: Multiple methods named...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Multiple methods named...


  • Subject: Re: Multiple methods named...
  • From: Michael Bauer <email@hidden>
  • Date: Sun, 17 Feb 2013 07:01:29 -0500

I must misunderstand what you are trying to accomplish. From the description of Strict Selector Matching:

"Warn if multiple methods with differing argument and/or return types are found for a given selector when attempting to send a message using this selector to a receiver of type "id" or "Class".  When this setting is disabled, the compiler will omit such warnings if any differences found are confined to types which share the same size and alignment. "

To me it seems that this is what you are trying to accomplish: use the same method name passed to a type id whose class is determined at runtime and each method from the respective class would do something different.

FWIW I just used a default command line template for the project.

Regards,
-mike
_______________________________________________

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: 
 >Multiple methods named... (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: cocoa bindings performance
  • Next by Date: Re: cocoa bindings performance
  • Previous by thread: Re: Multiple methods named...
  • Next by thread: NSDrawer not always sending -drawerDidOpen: to delegate
  • Index(es):
    • Date
    • Thread