Questions tagged [cocoa-bindings]

Cocoa bindings is Apple’s implementation of the Model-View-Controller design pattern for Mac OS X applications. It provides technologies that automate the synchronisation of domain data and the user interface elements that present them.

975 questions
0
votes
1 answer

Model Key Path issue with view-based NSTableView

When setting up bindings to work with NSTableView I'm coming across a problem. My array controller is bound to my table controller and its model key path is the array I'm using to populate the table. I've also set up one key, called name. My table…
Ryan
  • 767
  • 3
  • 9
  • 31
0
votes
1 answer

After saving Core Data, binding of NSManagedObject not works

After saving context, UITableViewCell's data is not been refreshed because binding is not triggered for UITextFields contained by cell. Have you seen any similar side effect so far?
János
  • 32,867
  • 38
  • 193
  • 353
0
votes
1 answer

NSTextField value is not updated immediately after model changes

I bind the textfield with a key in NSUserDefaults and the "Chose File..." button modifies the model. But the textfield is not updated after the button get clicked. I have to re-open the window to see the new value been populated into the…
Cheng
  • 4,816
  • 4
  • 41
  • 44
0
votes
1 answer

Polymorphism and Cocoa NSViews + bindings

I'm currently developing a Wizard-like feature for my app in which every step model class is a subclass of a base WizardStep class. I just have three of them now (but they will always be less than a dozen). I have a WizardController to backend the…
0
votes
0 answers

Node -> Cocoa app data flow

I have a question about comunication between node server and client cocoa app. I need to send every three seconds message from my server to specific clients. And I really dont know how to do that. Have you any ideas? (WebSockets arent probably best…
yety
  • 701
  • 2
  • 16
  • 26
0
votes
0 answers

Core-Data Check Box Cell with many-to-many data

i've got a Core-Data model like this (just an example): Now i'd like to have a window where a user can select the ingredients of the drink from every ingredient. like this: How can i achieve this? Thanks, Thomas Günzel
thomasguenzel
  • 670
  • 7
  • 25
0
votes
2 answers

Is it possible to bind an NSTreeController to an NSOutlineViewDataSource?

I have some hierarchical data model that I'd like to present in an NSOutlineView. I'm binding a tree controller to the outline view to provide data and to handle selection and binding to other views. However, I only want to show only part of the…
David Stein
  • 866
  • 7
  • 21
0
votes
1 answer

How to parse data into an array or dictionary

I have an app that makes multiple connections to different servers at the same time. I want to record each connection in an array so I can display them in a tableview and use them in a different section of my app. This is what I get back from…
0
votes
1 answer

Most elegant way to sync managed objects with controls on iPhone?

I'm trying to port an iPhone application from using SQLite to Core Data. Is there a way to sync managed objects directly with the controls that manipulate their values, without having a controller in the middle? Note: I CAN do it the hard way --…
Amagrammer
  • 6,385
  • 3
  • 28
  • 30
0
votes
1 answer

MasterDetail OSX app with a SourceView in View-Based mode

I'm struggling to setup the correct bindings to make a SourceView (OutlineView) in View-Based mode to work with a TreeController. It does work correctly in Cell-Based mode. Unfortunately I can't find how to setup header&title text, all I get is…
Olivier
  • 3,431
  • 5
  • 39
  • 56
0
votes
0 answers

NSArrayController causing double submission in NSTableView

I have a working version of my code using TableViewDataSource, but I want to transition it over to using NSArrayController. The code is for an interaction tracker that I'm working on for a project. It is a little messy so I know it needs some…
0
votes
1 answer

My first Cocoa master-detail application: Binding difficulties

I'm writing my first master detail view in Cocoa. My data model is really simple: just an NSMutableArray that contains instances of a single class having a few NSStrings properties. Here's what I've created so far: A class representing the…
0
votes
1 answer

How do I draw a shape in Quartz Composer for every element in an NSArray?

I have an XML file that I have parsed and have put the information I want into several NSArray objects. I want to be able to draw them in a QuartzView (anything better?) to visualize the data. The arrays should all hypothetically contain the same…
Rick Schmidt
  • 497
  • 2
  • 10
0
votes
1 answer

Simperium with OS X and NSArrayControllers

I am currently making an iOS/OS X app that uses simperium to manage syncing. If I follow the instructions for setting up iOS, everything works fine between iOS devices. When setting up on OS X, I've followed the additional setup instructions, but am…
macandyp
  • 817
  • 9
  • 21
0
votes
1 answer

When using a view-based NSOutlineView (source list) using bindings, is it possible to not display rows from the data source based on some condition?

For example the image below shows an NSOutlineView bound to a tree structure based on folders and items using an NSTreeController: What I want is the Item objects to remain in the model, but not to be displayed as rows, i.e: The NSOutlineView…
Michael
  • 2,258
  • 1
  • 23
  • 31