Re: Problems with NSArrayController and keyPath Operator
Re: Problems with NSArrayController and keyPath Operator
- Subject: Re: Problems with NSArrayController and keyPath Operator
- From: Brian Williams <email@hidden>
- Date: Thu, 30 Nov 2006 10:26:43 -0800
Scott,
Thanks for the hint.
I tried moving the operator, different operators, and everything else
I could think of.
I went back to the Key-Value programming guide's section on operators
<a href="file:///Developer/ADC Reference Library/documentation/
Cocoa/Conceptual/KeyValueCoding/Concepts/ArrayOperators.html">Link</a>
and put together demo app using their example of account and
transactions.
I modeled it exactly after the example in core data.
In interface builder I created an array controller for payees that
hooked up to the Accounts array controller and used the examples from
the documentation like
email@hidden
and
email@hidden
and I tried it the other way
email@hidden
I still get
*** NSRunLoop ignoring exception '[<_NSFaultingMutableSet 0x320e50>
addObserver:forKeyPath:options:context:] is not supported.
Key path: @distinctUnionOfObjects.payee' that raised during posting
of delayed perform with target 3b5e20 and selector 'invokeWithTarget:'
I have posted an <a href="http://chromaticgray.com/
AccountsAndTransactions.zip">Example App 64kB</a> if you Scott or
anyone else would be so kind to tell me what I am doing wrong.
Thanks again.
Brian
On Nov 29, 2006, at 23:38, Scott Stevenson wrote:
On Nov 29, 2006, at 4:05 PM, Brian Williams wrote:
What I want is an ArrayController of Managers of the selected
Department. I have tried binding to the Departments controller
with the keyPath email@hiddener, but I
get this error:
[<_NSFaultingMutableSet 0x3693b0>
addObserver:forKeyPath:options:context:] is not supported.
Key path: manager' that raised during posting of delayed perform
with target 397740 and selector 'invokeWithTarget:'
Without taking the time to create a project that matches your data
model, I suspect you just need to try something like:
email@hiddener
The operator should be to the right of the set it operates on.
- Scott
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
40chromaticgray.com
This email sent to email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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