unsigned short, NSNumber and NSTableView
unsigned short, NSNumber and NSTableView
- Subject: unsigned short, NSNumber and NSTableView
- From: Stéphane Sudre <email@hidden>
- Date: Wed, 16 Oct 2002 15:25:21 +0200
Is it mandatory to add a NSNumberFormatter to a NSTableColumn in order
to have unsigned short to be displayed as unsigned short?
I have a NSTableView with a NSTableColumn which sole purpose is to
display NSNumber or NSString (the default type of column in fact).
when I return [NSNumber numberWithUnsignedShort:myUnsignedShort]; in -
(id) tableView:(NSTableView *) inTableView
objectValueForTableColumn:(NSTableColumn *) inColumn row: (int) inRow
the value is displayed as signed when it's over 32765.
I'm sure I can get the unsigned display using a NSFormatter but is it
the standard way of doing things?
I would have thought NSNumber would not give a negative string.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.