Sorting numerical strings in a table
Sorting numerical strings in a table
- Subject: Sorting numerical strings in a table
- From: Koen van der Drift <email@hidden>
- Date: Sun, 4 Feb 2007 22:29:57 -0500
Hi,
One of the colums in a NSTableView that I populate through bindings
should display an NSString indicating a range: @"1-10", @"2-34", etc.
I simply create the strings from an NSRange ivar. Right now I just
display the first number (int firstNumber = myRange.location + 1),
and bind the column header to that value. Sorting works as expected.
However, I would rather have the string with the range be visible in
the column, but then (when I bind to the string) sorting doesn't work.
Is there a way to accomplish this?
thanks,
- Koen.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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