• 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
Re: Strange Core Data problem after upgrade
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange Core Data problem after upgrade


  • Subject: Re: Strange Core Data problem after upgrade
  • From: Volker in Lists <email@hidden>
  • Date: Thu, 8 Oct 2009 14:06:09 +0200

Hi,

you need to add a NSNumberFormatter to the text field. Number/String conversion does not happen automatically.

Volker

Am 08.10.2009 um 13:49 schrieb Rui Pacheco:

Hi,

Problem A,
Yes, all classes are set correctly in the data modeller.

Also, regarding problem B, this is getting stranger.

If I set the type of the variable to int 32 in the modeller and NSNumber in the class and then assign it a value using [entity value:forKey] it works just fine. But if I add an NSTextField to IB and bind it to that property, it fails with the stringValue error.

If, on the other hand, I set the type to string, on the modeller and on the class, IB will work just fine.

This makes me think that somewhere IB isn't converting from string to integer, but I don't remember having to set that manually.

Rui


_______________________________________________

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: Strange Core Data problem after upgrade
      • From: Rui Pacheco <email@hidden>
References: 
 >Strange Core Data problem after upgrade (From: Rui Pacheco <email@hidden>)
 >Re: Strange Core Data problem after upgrade (From: Volker in Lists <email@hidden>)
 >Re: Strange Core Data problem after upgrade (From: Rui Pacheco <email@hidden>)

  • Prev by Date: Re: Strange Core Data problem after upgrade
  • Next by Date: Undo and two NSManagedObjectContexts
  • Previous by thread: Re: Strange Core Data problem after upgrade
  • Next by thread: Re: Strange Core Data problem after upgrade
  • Index(es):
    • Date
    • Thread