• 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
integer value in NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

integer value in NSTableColumn


  • Subject: integer value in NSTableColumn
  • From: Andres <email@hidden>
  • Date: Thu, 19 Jul 2007 12:01:20 -0400

I have an entity with an integer32 attribute called "quantity" and I have an
array controller with instances of this entity. By binding an NSTableColumn
to the controller I am able to display the quantity values in the table just
fine. The problem is when I try to edit the quantity value in the table I
get the message below and am not allowed to tab out of the edit field.


Unacceptable type of value for attribute: property = "quantity"; desired type = NSNumber; given type = NSCFString; value = 6.


How do I resolve the that the table is using NSStrings and the array controller is storing the values as NSNumbers?


Thanks,

Andres
_______________________________________________

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: integer value in NSTableColumn
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: [ANN]CocoaTraces.com
  • Next by Date: Re: integer value in NSTableColumn
  • Previous by thread: Re: beginSheet, doesn't stop NSThread
  • Next by thread: Re: integer value in NSTableColumn
  • Index(es):
    • Date
    • Thread