LRFilterBar and Bindings
LRFilterBar and Bindings
- Subject: LRFilterBar and Bindings
- From: Michael Fey <email@hidden>
- Date: Fri, 27 Jul 2007 09:55:05 -0400
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:
This email sent to email@hidden