• 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: Core Data Fetch Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data Fetch Error


  • Subject: Re: Core Data Fetch Error
  • From: Chris Hanson <email@hidden>
  • Date: Fri, 10 Mar 2006 16:23:35 -0800

On Mar 10, 2006, at 2:31 PM, John Bishop wrote:

Which fails (intermittently unfortunately) with:

2006-03-10 16:08:23.035 App[2060] Can't do regex matching, reason: Can't open
pattern U_ILLEGAL_ARGUMENT_ERROR (string Korea, pattern , case 1, canon 0)

This looks like an exception being thrown. Put a try/catch block around your code and log the exception in the catch block. (You can then easily set a breakpoint on your NSLog.) Also, it would probably be useful to log the value of searchText too.


(Just FYI, you should also either release your fetch request before throwing an exception or you should release it in a @finally block to ensure it gets cleaned up no matter how you exit your method. Otherwise you'll leak a fetch request any time an error occurs.)

  -- Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Core Data Fetch Error (From: John Bishop <email@hidden>)

  • Prev by Date: Re: Core Data Fetch Error
  • Next by Date: Re: MDSchemaCopyDisplayNameForAttribute vs. CFPropertyListCreateFromXMLData
  • Previous by thread: Re: Core Data Fetch Error
  • Next by thread: NSSearchField string only?
  • Index(es):
    • Date
    • Thread