Re: Optional methods

2008-02-21 Thread Mike R. Manzano
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 PROTECTED]> wrote: I know about the pattern to shut the compiler up: create a category

Re: Optional methods

2008-02-21 Thread Keith Duncan
I'd like to create an informal protocol where objects can have an optional method. Though you don't say which SDK you are targeting; if you're using Obj- C 2.0 then you can also use a formal protocol and the @optional directive. Keith ___ Cocoa-

Re: Optional methods

2008-02-21 Thread Kyle Sluder
On Thu, Feb 21, 2008 at 10:57 AM, Mike R. Manzano <[EMAIL PROTECTED]> 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 > p