Re: Cocoa's custom class delegate conventions
Re: Cocoa's custom class delegate conventions
- Subject: Re: Cocoa's custom class delegate conventions
- From: Sherm Pendley <email@hidden>
- Date: Sat, 14 Jun 2003 15:20:50 -0400
On Saturday, June 14, 2003, at 04:24 AM, Sailor Quasar wrote:
For that matter, once you've confirm that [delegate
respondsToSelector:@selector(thingWillDoStuff:)], why in the world
can't you simply then call [delegate thingWillDoStuff:self] directly?
It's an id after all, and I believe one of the rules of ids is that you
can send any selector to them that they recognize.
You can, and at run-time it will work swimmingly. At compile-time,
however, you'll get lots of compiler warnings about it.
sherm--
"A well-written program is its own heaven; a poorly-written program is
its own hell."
-- The Tao of Programming
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.