• 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
Re: Problems with NSArrayController and keyPath Operator
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: Connecting to SQLITE
  • Next by Date: Connection to MySql
  • Previous by thread: Re: Problems with NSArrayController and keyPath Operator
  • Next by thread: Re: Problems with NSArrayController and keyPath Operator
  • Index(es):
    • Date
    • Thread