Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-30 Thread Willeke
MIkkel, I'm sorry, I didn't see your answer yet when I sent my previous message. Willeke ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-ad

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-30 Thread Willeke
If "Auto Rearrange Content" is switched on, the array controller is observing the objects in its content for the keypaths of the filterpredicate and sortdescriptors. The value of key "personalNames" of keypath "personalNames.value.gedcomString" is an array and can't be observed for key "value".

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-29 Thread Mikkel Eide Eriksen
On 29/09/2012, at 18.49, cocoa-dev-requ...@lists.apple.com wrote: > Message: 5 > Date: Sat, 29 Sep 2012 13:48:40 +0200 > From: Willeke > To: Cocoa-Dev List > Subject: Re: NSPredicate / NSArray > addObserver:forKeyPath:options:context: exception > Message-ID: >

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-29 Thread Mikkel Eide Eriksen
On 29/09/2012, at 15.59, Keary Suska wrote: > On Sep 28, 2012, at 7:17 PM, Mikkel Eide Eriksen wrote: > On 28/09/2012, at 03.51, Keary Suska wrote: >>> On Sep 27, 2012, at 11:54 AM, Mikkel Eide Eriksen wrote: When I run my app, I get an exception (quoted below) as soon as I expose

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-29 Thread Keary Suska
On Sep 28, 2012, at 7:17 PM, Mikkel Eide Eriksen wrote: > On 28/09/2012, at 03.51, Keary Suska wrote: >> On Sep 27, 2012, at 11:54 AM, Mikkel Eide Eriksen wrote: >>> >>> When I run my app, I get an exception (quoted below) as soon as I expose my >>> objects to my array controller (via a property

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-29 Thread Willeke
Is "Auto Rearrange Content" of the array controller switched on? The array controller can't observe to-many relationships. Does NSPredicateEditor work with to-many relationships? I don't think so, but I'm not sure. ___ Cocoa-dev mailing list (Cocoa-de

Re: NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-28 Thread Mikkel Eide Eriksen
On 28/09/2012, at 03.51, Keary Suska wrote: > On Sep 27, 2012, at 11:54 AM, Mikkel Eide Eriksen wrote: >> >> When I run my app, I get an exception (quoted below) as soon as I expose my >> objects to my array controller (via a property on my document it's bound >> to), though as far as I can tel

NSPredicate / NSArray addObserver:forKeyPath:options:context: exception

2012-09-27 Thread Mikkel Eide Eriksen
Hi all, I have some objects in an array and I want to filter it in the UI off my app. I first created a test case to test out various NSPredicates, and have verified that they work. For instance, filtering an array with the following predicate yields correct results: [NSPredicate predicateWith