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

Core Data Relationships Binding in IB

I have a simple program that stores purchase information in a core data store. The model is similar to the following. Entities: Student(lastName,firstName) relationship to (BoughtPackage) BoughtPackage relationship to (Payment) and…
willseward
  • 113
  • 1
  • 1
  • 8
0
votes
1 answer

Cocoa binding direct access to values

I use Cocoa binding (Shared User Defaults Controller) to bind values and enableness of some interface controls. Is there any possibility to get value of this values? Of course I can get them through defining my controls as outlets and then just get…
Luft-on
  • 179
  • 1
  • 13
0
votes
2 answers

Cocoa Bindings - why do I get these characters?

I am trying to learn Cocoa Bindings, and have a simple app with Title, First and Last Name. Here is a screenshot of the result when I run the app: I don't understand why I'm getting the null strings in the first and last names. Everything is built…
ICL1901
  • 7,632
  • 14
  • 90
  • 138
0
votes
0 answers

How to connect NSTableView with bindings to array(controller) from a different controller?

I've been working on this problem for the last couple of days and coudn't figure it out by myself. I worked through the Apple tutorials and did some research but haven't found an answer yet: I want to display a view based NSTableView on view "A" but…
Git.Coach
  • 3,032
  • 2
  • 37
  • 54
0
votes
1 answer

Text fields in master–detail view show ( "" ... instead of correct value

I'm following Aaron Hillegrass's book (trying), and am at the point trying to bind some view cells. I am getting the results in the screen shot below. The cells on the right side are at least editable. The title cell is not. I'd appreciate any…
ICL1901
  • 7,632
  • 14
  • 90
  • 138
0
votes
2 answers

Aaron Hillegass :: [NSArrayController add] = insertObject method

I must be missing something. I'm in the chapter titled "Key-Value Observing" in Cocoa Programming by Aaron Hillegass. I have inserted the code that enables the application to undo/redo adding and subtracting employees from RaiseMan. The…
schmudu
  • 2,111
  • 1
  • 21
  • 30
0
votes
1 answer

Have a NSComboBox to update when its bound NSMutableArray updates

Let's say I have a window with 2 combo boxes. The NSWindowController that control the window, has two mutable arrays that are bound to the combo boxes Content Values. What I would like is that while the first combo box has fixed values, the second…
Pinco Pallino
  • 916
  • 1
  • 6
  • 18
0
votes
1 answer

NSButton is highlighted after setTransparent:NO setEnabled:YES

I have 2 NSButtons, both are bordered momentary push-in buttons. I have a main window to which other views are swapped in and out. These two buttons are in the main window custom view (next,previous) which helps to navigate through the views. When I…
user12345
  • 425
  • 1
  • 3
  • 14
0
votes
2 answers

Binding issue between Core Data and NSArrayController

I am trying to set up the binding between Core Data, NSArraycountroller and a NSTableView. To get a NSManagedObjectContext for the NSArrayController. I dragged an NSObject in the IB, and named it after the appDelegate and then set up the binding of…
0
votes
1 answer

Make NSDocument "edited" when a binded control changes

I have an array of NSDictionaries and a NSDictionary iVar (*selectedDictionary) that points to one of the array's objects. *selectedDictionary points to a different object every time the user selects a different row in a NSTableView. Several GUI…
0
votes
1 answer

How to NOT display certain nodes in outline view?

In Apple's Mail app, in the outline view on the left, an inbox or a folder is shown in hierarchy but the emails in the folder or email is not shown at all. I would like to reproduce this feature. I have an outline view connected to a tree…
A A
  • 147
  • 1
  • 2
  • 8
0
votes
1 answer

Update predicate on arraycontroller

I have an array controller and I have bound an entity to it, sort descriptor and predicate. If I change the predicate format when the app runs, it works, so the binding is working. My problem is when I want to change the predicate, f.ex. with a…
Trausti Thor
  • 3,722
  • 31
  • 41
0
votes
1 answer

Use NSArrayController with nested NSMutableArrays (Cocoa Bindings Question)

I have a NSArrayController with following Object: @interface AdressCard : NSObject { NSString* name; NSString* street; NSMutableArray* tasks; } I have a simple GUI with an NSTableView to display the first two keys and I want…
plucked
  • 421
  • 7
  • 18
0
votes
1 answer

How to bind to-many relationship to the tableview?

I have a program with a database: Question <->> Answer The relationship is to-many. The answer contains two fields: value (yes or no) and date (which is set to now when you create a view) I've created a window in IB. In the table, first column…
0
votes
4 answers

NSTableColumn bound to a BOOL value

i have NSTableView bound to an NSArrayController. in my model i have a BOOL field. i'm trying to bind that value to the column. it displays correctly (1 where value is YES and 0 where value is NO), but it's readonly. =( when i'm trying to edit a…
1 2 3
64
65