• 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: "Mike R. Manzano" <email@hidden>
  • Date: Thu, 21 Feb 2008 20:38:19 -0800

Aha. Just want I wanted to know. You're right, I should have tried it first :)

Thanks,

Mike


On Feb 21, 2008, at 8:06 AM, Hamish Allan wrote:

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


References: 
 >Optional methods (From: "Mike R. Manzano" <email@hidden>)
 >Re: Optional methods (From: "Hamish Allan" <email@hidden>)

  • Prev by Date: Re: NSInvocation question
  • Next by Date: Simple Core Data Binding Question: NSTextField to Integer attribute
  • Previous by thread: Re: Optional methods
  • Next by thread: Re: Optional methods
  • Index(es):
    • Date
    • Thread