• 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: Keary Suska <email@hidden>
  • Date: Thu, 30 Nov 2006 11:47:34 -0700
  • Thread-topic: Problems with NSArrayController and keyPath Operator

on 11/29/06 5:05 PM, email@hidden purportedly said:

> Departments contain one or more Employees and Employees have one
> manager(a relation to an employee).
>
> In IB I have an ArrayController of Departments and an ArrayController
> of Employees of the selected Department. This works fine.
>
> 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:

(Off the top ofmy head) What if you bind contentObject of the "Managers"
NSArrayController to employees controller, and bind (or set) the filter
predicate? I have used a similar technique when I need to limit an
NSArrayController's content array based on conditions in individual objects.

Best,

Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"


_______________________________________________

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>)

  • Prev by Date: Getting the text out of iWork Pages file
  • Next by Date: Weird visual glitch with NSTableView header when scrolling...
  • Previous by thread: Re: Problems with NSArrayController and keyPath Operator
  • Next by thread: NSPopupButton and dialog
  • Index(es):
    • Date
    • Thread