• 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
unsigned short, NSNumber and NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: unsigned short, NSNumber and NSTableView
      • From: "Clark S. Cox III" <email@hidden>
  • Prev by Date: Re: Newbie Questions (components, databases, and parsing)
  • Next by Date: Re: unsigned short, NSNumber and NSTableView
  • Previous by thread: Re: Mac cursors
  • Next by thread: Re: unsigned short, NSNumber and NSTableView
  • Index(es):
    • Date
    • Thread