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

Re: Optional methods


  • Subject: Re: Optional methods
  • From: "Hamish Allan" <email@hidden>
  • Date: Thu, 21 Feb 2008 16:06:09 +0000

On Thu, Feb 21, 2008 at 3:57 PM, Mike R. Manzano <email@hidden> wrote:

>  I know about the pattern to shut the compiler up: create a category on
>  NSObject with the method defined, but if I were to do that, wouldn't
>  respondsToSelector: always return YES for that method, defeating the
>  point of calling respondsToSelector: in the first place?

You could always try it out and see ;)

The category interface will shut the compiler up; you don't need to
provide its implementation.

Hamish
_______________________________________________

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: Optional methods
      • From: "Mike R. Manzano" <email@hidden>
References: 
 >Optional methods (From: "Mike R. Manzano" <email@hidden>)

  • Prev by Date: Optional methods
  • Next by Date: Re: Garbage collection performance
  • Previous by thread: Optional methods
  • Next by thread: Re: Optional methods
  • Index(es):
    • Date
    • Thread