On May 24, 2016, at 18:01 , Rick Mann <rm...@latencyzero.com> wrote:
> 
> That's what I tried, but .selection is always _NSControllerObjectProxy, and 
> the resulting conditional cast never triggers.

Urg. You could assigning treeController.selection.self to an AnyObject 
variable, and see if that retrieves the object it’s a proxy for.

Or, forget treeController.selection, but use 
'treeController.selectedObjects.first as? MyClass' instead. That one isn’t a 
proxy.

_______________________________________________

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

This email sent to arch...@mail-archive.com

Reply via email to