Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Quincey Morris
On Jan 8, 2016, at 13:44 , Etan Kissling wrote: > > a. Could be :-) However, since the Find feature of the minimal app stops > working properly after modifying the collection, there's definitely something > fishy. I suspect the inability to display Set members comes from the fact that the deb

Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Etan Kissling
Wow, thanks for the various hints. a. Could be :-) However, since the Find feature of the minimal app stops working properly after modifying the collection, there's definitely something fishy. b. Yep, the dynamic keyword can afaik only be applied to types that are representable in objc. c. Hm

Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Quincey Morris
On Jan 8, 2016, at 09:59 , Etan Kissling wrote: > > As the comments in the sample project describe in the introductory comments, > modifying the code to force an NSSet does not solve the problem. a. I believe your debugger display problems are just that — problems in the debugger, not necessari

Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Etan Kissling
dynamic var foos: NSMutableSet = [Foo(x: 0), Foo(x: 1), Foo(x: 2)] (lldb) e/x foos as! Set Comparing 2 to 0 Comparing 1 to 0 (Set) $R0 = ([0] = , [1] = , [2] = ) On 08 Jan 2016, at 19:00, Etan Kissling mailto:kissl...@oberon.ch>> wrote: In fact, it makes things even worse, and freezes up

Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Etan Kissling
In fact, it makes things even worse, and freezes up Xcode when expanding the set in the debugger. > On 08 Jan 2016, at 18:59, Etan Kissling wrote: > > As the comments in the sample project describe in the introductory comments, > modifying the code to force an NSSet does not solve the problem.

Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Etan Kissling
As the comments in the sample project describe in the introductory comments, modifying the code to force an NSSet does not solve the problem. > On 08 Jan 2016, at 18:39, Quincey Morris > wrote: > > On Jan 8, 2016, at 07:14 , Etan Kissling > wrote: >> >> In my View

Re: Modifying Set via NSArrayController breaks Set in weird way

2016-01-08 Thread Quincey Morris
On Jan 8, 2016, at 07:14 , Etan Kissling wrote: > > In my ViewController, there is a NSSet-based collection of such objects. > > final class ViewController: NSViewController { >dynamic var foos: Set = [Foo(x: 0), Foo(x: 1), Foo(x: 2)] > } I don’t think it’s true that ‘foos’ is a NSSet. Rath