Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

LRFilterBar and Bindings



Hello Folks!

I'm using the fantastic LRFilterBar in my application to filter the contents of a Core Data-driven table. The filter bar is replacing the use of a NSPopUpButton whose contents was bound to the values from an NSArrayController.

The LRFilterBar is built using an NSArray of NSStrings. Is it possible to bind that NSArray of NSStrings to the NSArrayController's values?
Here is the sample code from the LRFilterBar package showing how to initialize the filter bar:


NSArray *labels = [[NSArray alloc] initWithObjects:@"All", @"Music", @"Audiobooks",
@"DIVIDER", @"All", @"Artist", @"Album",
@"DIVIDER", @"All", @"Good Music", @"Crappy Music", nil];
[theFilterBar addItemsWithTitles:labels withSelector:@selector (selectNewItem:) withSender:self];


Regards,
	Michael Fey
	email@hidden



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please 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


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.