• 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
Core Data _NSFaultingMutableSet Exception
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data _NSFaultingMutableSet Exception


  • Subject: Core Data _NSFaultingMutableSet Exception
  • From: "Gerriet M. Denkmann" <email@hidden>
  • Date: Tue, 22 Dec 2009 12:05:38 +0700

Core Data model with two entities: A and B.

A has property aValue and a relation theBs to one or more Bs.

B has a property bValue.

Two NSTableViews (tabelView1 and tableView2 ) with each controlled by an NSArrayController (arrayController1 and arrayController2).

Everything works fine when I send:
 [ arrayController1 setFilterPredicate: "aValue BEGINSWITH[n] "a""];
 [ arrayController2 setFilterPredicate: "aValue containsInside: "a""];
(Well, I do send real predicates, but they contain the strings shown above. "containsInside:" is declared in a category on NSString)

But when I use:
 [ arrayController1 setFilterPredicate: "aValue BEGINSWITH[n] "a" AND ANY theBs.bValue == "xx""];
I get an exeption:

 HIToolbox: ignoring exception '[<_NSFaultingMutableSet 0x1001f5d00> addObserver:forKeyPath:options:context:] is not supported. Key path: bValue' that raised inside Carbon event dispatch

When later I reset the filterPredicates back to the simple (working) mode, I get another exception:
 HIToolbox: ignoring exception 'Cannot remove an observer <arrayController1> for the key path "theBs.bValue" from <A-entity 0x114f02a10> because it is not registered as an observer.' that raised inside Carbon event dispatch

1. This is a Cocoa document based app, using Core Data. Why this "Carbon event dispatch". And who is HIToolbox?

2. I have an identical app, which works perfectly.
(Obviously these two apps are NOT identical, but I really cannot find any differences. I tried to remove all changes I made to the newer app, but the exception remains).

I spend now more than a day chasing this exception. Any hints would be most welcome. 10.6.2.


Kind regards,

Gerriet.

_______________________________________________

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: Core Data _NSFaultingMutableSet Exception
      • From: Graham Cox <email@hidden>
    • Re: Core Data _NSFaultingMutableSet Exception
      • From: Jerry Krinock <email@hidden>
  • Prev by Date: Re: Core Data validateForUpdate
  • Next by Date: Re: UIImage and shadows, WAS: Re: Please if some one knows
  • Previous by thread: Re: iPhone and GC
  • Next by thread: Re: Core Data _NSFaultingMutableSet Exception
  • Index(es):
    • Date
    • Thread