cocoa-bindings

How can I determine if Apple methods are asynchronous?

守給你的承諾、 提交于 2019-11-27 02:02:40
I'm binding an NSArrayController to a managedObjectContext with mainQueueConcurrency. All that I want is to do is modify the sort properties the arrangedObjects with my own function and then call rearrangeObjects and then select some objects. But it's looking like rearrangeObjects doesn't execute synchronously. So how can I prove that, one way or the other? This works: [self.myArrayController rearrangeObjects]; // Async needed -- I believe rearrange calls a fetch, which is async dispatch_async(dispatch_get_main_queue(), ^{ [self.myArrayController setSelectedObjects:anArray]; }); Minus the

Using an NSArrayController in Multiple Storyboard Scenes

主宰稳场 提交于 2019-11-27 01:39:15
问题 I have a Mac document-based Core Data application that uses storyboards. The storyboard has the following layout: Window Controller Split View Controller Table View Controller Text View Controller My Core Data model contains a Chapter entity that contains two attributes: title and contents. I want the table view to show each chapter title. The text view shows the contents of the selected chapter. If I was using a xib file, I would add an array controller to the xib file. I would bind the