Array operators
Array operators
- Subject: Array operators
- From: Julio Cesar Silva dos Santos <email@hidden>
- Date: Tue, 4 Apr 2006 13:24:09 -0300
Hi,
I am trying to use array operators to show some information on
bindings but I think I am missing something:
The array operators (@max, @min, @count, and so on) can be used to
bind displayPatternValue options, so if I want to show a message like
"xx elements in the array" I can write "%{value1}@ elements in the
array" in Display Pattern of Value With Pattern Bindings section.
Well, I have a window that I add objects to an NSArrayController and
this window has two buttons to move back and forward in the array, so
I want to have an NSTextView showing a message like this: "xx object
of zz objects" where xx is the current position and zz is the total
elements in the array every time I click on one of the buttons. In
displayPatternValue1 I used selectionIndex as Controller Key. In
displayPatternValue2 I used arrangedObjects as the Controller Key and
@count as Model Key Path. Is there a way to add 1 to xx so it would
show the correct position instead of the index?
Thanks for any suggestion,
Julio Cesar Santos
email@hidden
eMac 1GHz ComboDrive
1GB RAM
Linux User #359973
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden