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 19:46:36 -0800
Scott,
Thanks for setting me straight on the bindings. I understand now why
what I was trying wouldn't work. I was thinking of it more like a DB
query and not linking into the data structure.
Brian
On Nov 30, 2006, at 18:13, Scott Stevenson wrote:
On Nov 30, 2006, at 10:26 AM, Brian Williams wrote:
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.
<snip>
So instead of having the NSArrayController fetch an array of payee
names itself, we break it down into a two-step process.
1. Get the contentSet of Transactions which belong to the selected
Account
2. Bind the table column to that subset and use 'payee' as the
model key path
Hope that all makes sense. Imagine a bunch of exaggerated hand
motions if it helps.
- 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:
This email sent to email@hidden