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
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-
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