• 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: Using bindings to make an NSPopupButton to assign an array filter predicate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using bindings to make an NSPopupButton to assign an array filter predicate


  • Subject: Re: Using bindings to make an NSPopupButton to assign an array filter predicate
  • From: Keary Suska <email@hidden>
  • Date: Mon, 18 Dec 2006 11:25:00 -0700
  • Thread-topic: Using bindings to make an NSPopupButton to assign an array filter predicate

on 12/17/06 5:34 PM, email@hidden purportedly said:

> NSPopupButton
> -----
> content
> Bind to: predicateController
> Controller Key: arrangedObjects
> -----
> contenValues
> Bind to: predicateController
> Controller Key: arrangedObjects
> Model Key Path: name
> -----
> selectedIndex
> Bind to: Shared User Defaults
> Controller Key: values
> Model Key Path: filter
> -----
>
>
> When I build/run this, the NSPopupButton populates properly, and my
> data shows up filtered by the first predicate in the list, regardless
> of which is selected.  If I try to change the selection of the
> NSPopupButton, the visible data does not change.

What happens when you bind selectedIndex to predicateController's
selectedIndex? Right now, it would appear, that changing the NSPopupButton
selection only changes shared user defaults.

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: 
 >Using bindings to make an NSPopupButton to assign an array filter predicate (From: James Farwell <email@hidden>)

  • Prev by Date: Re: Getting the users typed text in a NSComboBox textfield
  • Next by Date: Re: NSMatrix, NSImageCell and selection indicator
  • Previous by thread: Using bindings to make an NSPopupButton to assign an array filter predicate
  • Next by thread: [Q] is it shallow copy or deep copy? and why things are not retrieved well?
  • Index(es):
    • Date
    • Thread