• 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
RE: Implementing a record counter (record n of records)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Implementing a record counter (record n of records)


  • Subject: RE: Implementing a record counter (record n of records)
  • From: "Jon C. Munson II" <email@hidden>
  • Date: Thu, 18 Dec 2008 16:17:11 -0500
  • Organization: JTA Enterprises LLC

Thanks alot, that worked out well as far as a single value goes. :)

How does one create a value transformer for multiple values?  Do you need to
write a transformer for each value in the chain, etc.?

Thanks again!

Peace, Love, and Light, 

/ s/ Jon C. Munson II

-----Original Message-----
From: Kevin Gessner [mailto:email@hidden]
Sent: Thursday, December 18, 2008 3:40 PM
To: email@hidden
Cc: 'cocoa dev'
Subject: Re: Implementing a record counter (record n of records)


You could use a value transformer that would add 1 to selectedIndex.
It could also return something like "(nothing selected)" when there's
no selection. The "some number other than 0" might be
NSNoSelectionMarker, so you could check against that in your value
transformer.

HTH,
-- Kevin

Kevin Gessner
http://kevingessner.com
email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Implementing a record counter (record n of records) (From: "Jon C. Munson II" <email@hidden>)
 >Re: Implementing a record counter (record n of records) (From: Kevin Gessner <email@hidden>)

  • Prev by Date: Re: Question Regarding the Memory Address of Objects
  • Next by Date: Re: Validation of a Custom View NSToolbarItem
  • Previous by thread: Re: Implementing a record counter (record n of records)
  • Next by thread: Question Regarding the Memory Address of Objects
  • Index(es):
    • Date
    • Thread