Re: Using bindings to make an NSPopupButton to assign an array filter predicate
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