• 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
Simple Core Data Binding Question: NSTextField to Integer attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simple Core Data Binding Question: NSTextField to Integer attribute


  • Subject: Simple Core Data Binding Question: NSTextField to Integer attribute
  • From: Chris Schmitt <email@hidden>
  • Date: Fri, 22 Feb 2008 00:03:38 -0500

I am sure this is easy and I am just missing something, but I want to bind my integer attribute to an NSTextField. The data is displayed correctly, but after I update the value in the text field and try to save the changes back to my model. I get an error saying that the update failed trying to set the integer value to a string value.

I have been searching for a while and I think I need to use a number formatter, but it would seem that there is an easier way to do this.

On a side note, what is the best way to make sure only numbers are typed into the text field?

Thanks in advance

_______________________________________________

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: Simple Core Data Binding Question: NSTextField to Integer attribute
      • From: Adam P Jenkins <email@hidden>
  • Prev by Date: Re: Optional methods
  • Next by Date: Re: NSInvocation question
  • Previous by thread: Bindings problem
  • Next by thread: Re: Simple Core Data Binding Question: NSTextField to Integer attribute
  • Index(es):
    • Date
    • Thread