• 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
NSDictionaryController with NSTableView and sorting of numeric data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionaryController with NSTableView and sorting of numeric data


  • Subject: NSDictionaryController with NSTableView and sorting of numeric data
  • From: "email@hidden" <email@hidden>
  • Date: Tue, 13 May 2008 12:25:08 +0100

Hello list

I have bound an NSDictionaryController to an NSTableView.
The keys in my bound dictionary are numeric strings 1... n
The dictionary keys and values display okay but the sorting of the key column is not numeric but alphabetic.
The value column sorts fine for objects of type NSNumber.
I have tried using NSNumber keys and an NSValueTransformer subclass but the controller seems to need an NSString key.


I know I am being dumb here. Please put me out of my misery.

Thanks

Jonathan

_______________________________________________

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


  • Follow-Ups:
    • Re: NSDictionaryController with NSTableView and sorting of numeric data
      • From: email@hidden
  • Prev by Date: WWDC 2008 Sessions PDF Generator
  • Next by Date: How to deal with property and Undo?
  • Previous by thread: WWDC 2008 Sessions PDF Generator
  • Next by thread: Re: NSDictionaryController with NSTableView and sorting of numeric data
  • Index(es):
    • Date
    • Thread