I was hoping to use a protocol to define the objects I could put into an 
NSOutlineView. Unfortunately, NSOutlineView has datasource methods that return 
AnyObject, and I can't seem to return a variable of my protocol type as an 
AnyObject.

I'm curious why, and what the right approach might be? If I have an instance of 
MyProtocol, is there any way to pass it to something that wants an AnyObject?

TIA,

-- 
Rick Mann
[email protected]



_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to