0
votes
2answers
35 views

How to create a 1 column tableview of checkboxes in cocoa

What are the correct steps to create a single column tableview with a fixed number of checkboxes. For example the column could have the following (X indicates the checkbox checked, _ indicates the ...
0
votes
1answer
37 views

Binding Cocoa NSComboBox value to object

Assuming I have an NSObject subclass representing a country, e.g. @interface CountryInfo : NSObject @property (nonatomic, retain) NSString *countryName; My model contains an NSMutableArray of ...
0
votes
0answers
33 views

how to bind textview line spacing with NSSlider?

I'm trying to add NSSlider to increase/decrease the text view line spacing. I was not able to bind the slider with the line spacing property. Is there any way to achieve it?
1
vote
1answer
121 views

NSDateformatter added in Interface Builder on NSTextfield adds GMT difference

OK, I want to build a countdown timer with a NSTextfield and a NSStepper to increase it. Both have bindings to the same int property in ModelKeyPath in Interface Builder. To format the int value ...
1
vote
1answer
92 views

Search Field Predicate Format [duplicate]

I am having questions on using a NSSearchField. I binded it to my Dictionary Controller and now I would like to search from it. Here is the project MyPlist(top) My Header File(Bottom) My ...
1
vote
0answers
77 views

Programmatically establishing binding against NSObjectController fails

I've got a view with an NSObjectController that's already bound to various text fields. These bindings work just fine. Now I need to establish one additional binding to the selected index of a ...
0
votes
1answer
60 views

Adding an object to a binded NSTableView - Core Data application

I have an app that uses core data. The model of which has 3 Entities, all connected by 1-many relationships as so: |E1|<-->>|E2|<-->>|E3| My UI is essentially a 3-way vertical split pane, each ...
1
vote
1answer
118 views

bind:toObject:withKeyPath:options: is one-way binding?

I have two windows: Window A is loaded from NIB; and Window B is created programmatically. Both windows have a NStextView: the attributedString of the textview in Window A is bound to the the ...
0
votes
1answer
92 views

Bind NSTableColumn to NSArrayController programmatically

How can i bind a NSTableViewColumn to an NSArrayController programmatically? i have a table with 2 columns that are already bound to the array controller. but i am adding new columns at Runtime, and ...
2
votes
1answer
182 views

bind NSTableViewColumn programmatically

how can I programmatically bind a NSTableViewColumn to a NSArray.arrangedObjects key? I know how to do it in IB but was not able to find how its done programmatically. The code is adding new columns ...
0
votes
1answer
107 views

How can I make my NSCollectionView items selectable?

In awakeFromNib I have: [projectArrayController addObserver:self forKeyPath:@"selectionIndexes" options:NSKeyValueObservingOptionNew ...
0
votes
0answers
38 views

How to programmatically add a drill-down object in a managedobjectcontext

I have an application where I am tracking patients and sessions. I am using core data, and I have used bindings to link my table views with data in a managed object context. One patient can have ...
0
votes
0answers
48 views

Binding works on NSPopUpButton but fails on NSTableView

So, I have a subclass of NSArrayController, "InstructorArrayController". A pointer to this is "instructorController", a member of my NSWindowController subclass, "ConfigEditorController". In my ...
0
votes
2answers
128 views

How to reordering rows in NSTableView with NSArrayController

i've got NSArrayController which gives my NSTableView object data from array _files. The problem is i want to reorder rows by dragging. How can i do this correclty with NSArrayController? Thank you ...
0
votes
1answer
106 views

Auto-complete on NSComboBoxCell via Binding in Objective-c

I don't know whether I have set this up incorrectly or not, but what I have done makes sense to me. I have an NSTableView with two columns in it - a properties column on the left and a values column ...

1 2 3 4 5 10
15 30 50 per page