Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with NSArrayController and keyPath Operator



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%20Reference%20Library/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:
http://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev% 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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Problems with NSArrayController and keyPath Operator (From: Brian Williams <email@hidden>)
 >Re: Problems with NSArrayController and keyPath Operator (From: Scott Stevenson <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.