> On May 24, 2016, at 23:45 , Quincey Morris
> wrote:
>
> On May 24, 2016, at 23:26 , Rick Mann wrote:
>>
>> Eh, I think I'll just use my current workaround using NSOutlineView methods.
>
> Really? There’s nothing wrong with using ‘selectedObjects’. The only drawback
> is that it has to cre
On May 24, 2016, at 23:26 , Rick Mann wrote:
>
> Eh, I think I'll just use my current workaround using NSOutlineView methods.
Really? There’s nothing wrong with using ‘selectedObjects’. The only drawback
is that it has to create an actual NSArray each time you ask for it, but that’s
not a mean
> On May 24, 2016, at 19:34 , Quincey Morris
> wrote:
>
> On May 24, 2016, at 18:01 , Rick Mann wrote:
>>
>> That's what I tried, but .selection is always _NSControllerObjectProxy, and
>> the resulting conditional cast never triggers.
>
> Urg. You could assigning treeController.selection.se
> On May 24, 2016, at 21:24 , Jerry Krinock wrote:
>
> This may not work even if you work through the Swift issues.
>
> In Objective-C, the selection, selection indexes, and selected objects are
> all *not* observeable as documented in NSArrayController. See Apple Bug
> 7827354, clos
This may not work even if you work through the Swift issues.
In Objective-C, the selection, selection indexes, and selected objects are all
*not* observeable as documented in NSArrayController. See Apple Bug 7827354,
closed as duplicate of 3404770.
Assuming that NSTreeController is somehow b
On May 24, 2016, at 18:01 , Rick Mann 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
> On May 24, 2016, at 17:58 , Quincey Morris
> wrote:
>
> On May 24, 2016, at 17:49 , Rick Mann wrote:
>>
>> I'm trying to observe an NSTreeController's selection property, and then do
>> something with that selection when it changes. But Swift doesn't just let me
>> treat .selection as my
On May 24, 2016, at 17:49 , Rick Mann wrote:
>
> I'm trying to observe an NSTreeController's selection property, and then do
> something with that selection when it changes. But Swift doesn't just let me
> treat .selection as my object type (the way Obj-C would). So, can I use it
> (short of c
I'm trying to observe an NSTreeController's selection property, and then do
something with that selection when it changes. But Swift doesn't just let me
treat .selection as my object type (the way Obj-C would). So, can I use it
(short of calling -valueForKey:) from Swift?
--
Rick Mann
rm...@la