• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Array operators
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Array operators
      • From: mmalcolm crawford <email@hidden>
    • vector of bools
      • From: Boyd Collier <email@hidden>
  • Prev by Date: Re: Scared by implicit use of 'description' in bindings
  • Next by Date: Re: untar into app bundle
  • Previous by thread: Re: Scared by implicit use of 'description' in bindings
  • Next by thread: vector of bools
  • Index(es):
    • Date
    • Thread