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
2 answers

Binding a table column containing NSPopUpButtons

I've got a table one column of which uses an NSPopUpButtonCell. Try as I might, I can't seem to figure out the way to properly bind everything the way I want it. Here's what I'm trying to do: I have an NSArrayController plucking items from a managed…
Jim Dovey
  • 11,166
  • 2
  • 33
  • 40
0
votes
0 answers

tried to change the NSArrayController selectIndex programmatically, won't work

I have a question regarding the cocoa binding. I have a xib file, inside this xib file (named AddInformation.xib), I have added a array controller. I have bound the array to one of my NSMutableArray. I have also set an IBOutlet for this array…
Josh
  • 692
  • 2
  • 9
  • 38
0
votes
1 answer

Interface Builder for Dummies: how to set the action of my button to "selectNext"?

I am in "the Binding Inspector" of my button, but I don't know how to put the right information. I guess I have to enter information only for "Target" (not for Argument I bind it to "Array Controller" But then ? I have the choice between four…
Colas
  • 3,473
  • 4
  • 29
  • 68
0
votes
1 answer

How to bind a property to an external controller?

I work with the SDK 10.6, with Xcode 4.2. I want to bind a "property" to a controller that exists "out of my nib". How could I do : with Interface Builder ? without it ? More precisely, I want to bind the enabled property of a NSButton to an…
Colas
  • 3,473
  • 4
  • 29
  • 68
0
votes
2 answers

cocoa bindings - [NSArrayController removeObjects] doesn't really delete objects from database, but it doesn't show it again

I'm working on a data-driven iOS app. I've finished a helper mac os app with core data&cocoa Bindings to prepare data to preload on the iOS app. Suddenly on using the pre-loaded .sqldata file, I found empty objects. I was using NSArrayController's…
Tahan
  • 77
  • 2
  • 12
0
votes
0 answers

Changing value of checkbox with bindings

I have a model with a boolean value and 3 strings. I have a UI that has a checkbox and 3 text fields. The UI elements are all bound to the values in the model using Interface Builder. I'm also using a method on the model to enable and disable the…
ruipacheco
  • 15,025
  • 19
  • 82
  • 138
0
votes
4 answers

What does "key contains $value" mean?

I have an NSSearchField bound to an NSDictionaryController. In my search field's predicate format, I have a code like this key contains $value and what does it mean? What other alternatives are there for the predicate format (lines of code)? Thanks!
user1927992
  • 123
  • 1
  • 7
0
votes
1 answer

Cocoa - Bindings - Tableview - How to calculate sum of columns

Let's say I have an Entity named Values and it has three attributes: A, B and SUM. I have a tableview where Column A and Column B is bound to the attributes A and B. The user can change the values of the first to columns (A,B) but not the third…
Mikael
  • 3,572
  • 1
  • 30
  • 43
0
votes
1 answer

Sorting order in NSTableView

I have a list of data which I am able to sort by clicking on the column header. The only problem is that it displays like: 10A 11A 12A 1A 2A 3A etc... Where ideally, I would like it to be sorted like: 1A 2A 3A 4A 5A 6A 7A 8A 9A 10A 11A etc... Is…
Alex
  • 3,031
  • 6
  • 34
  • 56
0
votes
1 answer

NSTextField does not update calculated property using Core Data bindings

New to SO; my first question: Re: Core Data, document based app using bindings: I have an NSTableView bound to an NSArrayController, bound to an entity, LineItem, with several columns bound to the following LineItem attributes/properties: amount,…
0
votes
1 answer

full text searching in managed object context and core data

I am building a notes-like application. It has a NStableview displaying all notes' titles, and a NStextview displaying the plain text of the selected note. I am using bindings and core data. I want to have a search feature: 1. the tableview only…
0
votes
0 answers

Core Data: Transformable Attribute's property not being updated

I have a CoreData model which has a non-standard attribute as a member. So I have a subclass of NSValueTransformer to convert the object to NSData and back. This member has 2 properties of type NSNumber... max and min. I implement them with…
horseshoe7
  • 2,745
  • 2
  • 35
  • 49
0
votes
1 answer

Cocoa core data self referential interface builder question

I'm having trouble understanding how to get the following working in interface builder. I've created a Core Data model class "Person" that has a number of attributes (first name, surname, etc.) and a relationship to other persons…
Sway
  • 1,647
  • 3
  • 16
  • 19
0
votes
1 answer

Load image from file - save in core data - show image with bindings

I would like to load images from disk and add them to core data. I have an attribute set as transformable. I would like to get directions on how I should read the images and then add them to the entity. Later I would like to show the image in an…
Mikael
  • 3,572
  • 1
  • 30
  • 43
0
votes
2 answers

Why is my NSTextField not responding to setStringValue?

I have an object which is hooked up to interface builder (one of the little blue boxes down the left hand side (Xcode 4.5.2) and I have created bindings to an NSTextField as I am used to doing. I have also synthesised the text field in the main file…
neutrino
  • 341
  • 1
  • 3
  • 19