On Aug 28, 2009, at 15:02:13, Corbin Dunn wrote:
On Aug 28, 2009, at 2:57 PM, Rick Mann wrote:
Thanks for the suggestions. I have one suggestion saying to extend
my protocol to conform to NSObject, and another saying I should use
NSObject instead of ID.
Is one approach better than the other?
Yes; David's suggestion is preferred. It is what we did in AppKit
for SnowLeopard, ie:
@protocol NSControlTextEditingDelegate <NSObject>
The main reason is so controls can store a reference and do a -
respondsToSelector: on @optional methods.
Thanks much!
_______________________________________________
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to arch...@mail-archive.com