Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Monaj

macrumors regular
Original poster
May 24, 2009
193
0
Hi All,

I am trying a simple application where I have a mutable array of mutable dictionaries, such as -

Code:
NSMutableDictionary *sample6 = [[NSMutableDictionary alloc] initWithObjectsAndKeys:@"title6",@"title",[NSNumber numberWithBool:NO],@"state", nil];

In IB I created a table view with NSButtonCell (check box).

I was able to show checkboxes state (checked or unchecked), using following table column bindings:

Code:
Value - ArrayController.arrangedObjects.state

In this case it shows an array of checkboxes with title - "Check".

Now my aim is to show checkboxes title using bindings, such that it gets value from same mutable dictionary from which it is getting its state.

Can anyone suggest me some way to achieve this?

Thanks
 
Now my aim is to show checkboxes title using bindings
Doesn't this work for you?
Bindings Inspector-> button cell's title parameter.ArrayController.arrangedObjects.titlesdata, where titlesdata is something you put into arrangedObjects.
 
Doesn't this work for you?
Bindings Inspector-> button cell's title parameter.ArrayController.arrangedObjects.titlesdata, where titlesdata is something you put into arrangedObjects.

Can you clarify which binding you are talking about ?

I tried this binding but it didn't work -

NSButtonCell-

title : ArrayController.arrangedObjects.checkboxTitle

I also checked NSTableColumn, bindings but there I could not find any binding for button cell title.
 
Last edited:
Can you clarify which binding you are talking about ?
No.
I went and tried that binding, and it didn't work.
Everything came back with the same title, an element from the arranged objects title data, but always the same.
Looks to me like the titles of controls in a table column are not individually settable. I knew that was true for control images in a table column, but apparently it holds for titles as well.
-Sorry.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.