• 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: NSExpression with constant NSData value crashes Core Data
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSExpression with constant NSData value crashes Core Data


  • Subject: Re: NSExpression with constant NSData value crashes Core Data
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 22 May 2009 16:03:29 -0700


On 2009 May 22, at 13:54, Ben Trumbull wrote:

Uhm, No. %@ is the vararg specifier for an NSObject. - stringWithFormat: turns that into a string. Because - stringWithFormat: turns everything into a string. Kinda the point.

-predicateWithFormat: does NOT call -description randomly. Predicates are trees of first class objects, like an AST for a query. It does not turn objects into their textual representation before comparison.

Ah, I'd forgotten that and incorrectly jumped to that conclusion when I saw that my data was being sent -UTF8String.


Result: It worked fine with the XML store (Why??). But when I switch
to the SQLite store, it crashes when Core Data sends a -UTF8String
message to the data object -- because it's expecting a damned
description string. Took me several hours before I finally read Ben's
post very carefully and figured out why it was doing that.

This bug was fixed in 10.5.7

Indeed, I was using 10.5.6 and coincidentally just updated this afternoon. THANKS for the info -- that would have REALLY confused me had I seen that it had suddenly fixed itself.


_______________________________________________

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


References: 
 >re: NSExpression with constant NSData value crashes Core Data (From: Ben Trumbull <email@hidden>)

  • Prev by Date: re: NSExpression with constant NSData value crashes Core Data
  • Next by Date: Re: entity name not found when model is in private framework
  • Previous by thread: re: NSExpression with constant NSData value crashes Core Data
  • Next by thread: Save option For NSTextview.
  • Index(es):
    • Date
    • Thread