NSArrayController still doesn't support NSOrderedSet? (was: Are instances of a NSManagedObject subclass usable as regular objects?)

2017-02-15 Thread Daryle Walker
> On Feb 14, 2017, at 6:50 PM, Daryle Walker wrote: > > Looking at my code again, I had a massive brain-fart. I created all the data > objects with local “let,” but forgot to assign the top-level object to my > document’s data property. > > Once I did that, the window

Re: Are instances of a NSManagedObject subclass usable as regular objects?

2017-02-14 Thread Jens Alfke
> On Feb 14, 2017, at 3:16 PM, Daryle Walker wrote: > > How do I give managed objects enough permanence to be used with systems > expecting normal objects? Managed objects are regular NSObjects and are ref-counted the same way. To keep one around, just use a regular strong

Re: Are instances of a NSManagedObject subclass usable as regular objects?

2017-02-14 Thread Daryle Walker
Looking at my code again, I had a massive brain-fart. I created all the data objects with local “let,” but forgot to assign the top-level object to my document’s data property. Once I did that, the window doesn’t show up at all due to a different problem: > 2017-02-14 18:43:00.018210

Are instances of a NSManagedObject subclass usable as regular objects?

2017-02-14 Thread Daryle Walker
I’m on macOS Sierra, running Swift 3 on Xcode 8. I started the basic document-based project, with storyboards but without Core Data. The main window has a table view and a text view. I connected them to my document’s data object with Cocoa Bindings. I put in sample data into the object and the