Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[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



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden

References: 
 >Using bindings to make an NSPopupButton to assign an array filter predicate (From: James Farwell <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.