Cocoa's custom class delegate conventions
Cocoa's custom class delegate conventions
- Subject: Cocoa's custom class delegate conventions
- From: Jean-Francois Roy <email@hidden>
- Date: Fri, 13 Jun 2003 23:25:29 -0400
Hey
I have written several custom classes (NSObject subclasses) and I want
to give a delegate to several of them. But I have hit what seems a lack
of documentation on how delegate methods should be called.
In particular, I was wondering how delegate methods should be called.
Once an object has checked if it has a delegate, should it simply call
the appropriate selector for the given context directly, use NSObject's
performSelector methods, which does not allow for more than one
parameter, use NSObject's performSelectorOnMainThread methods to ensure
that the delegate receives the message on the main thread, but again
with a one parameter limitation, or what?
What is Foundation and AppKit's behavior?
Thanks for any pointers.
Jeff Roy
--
Co-Founder of MacStorm
Programmer at MacStorm
http://www.macstorm.org
http://www.theworldcrafters.com
email@hidden
_______________________________________________
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.