• 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
LRFilterBar and Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: LRFilterBar and Bindings
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Core Graphics Drawing in OpenGL Context?
  • Next by Date: Re: Core Graphics Drawing in OpenGL Context?
  • Previous by thread: Re: Core Graphics Drawing in OpenGL Context?
  • Next by thread: Re: LRFilterBar and Bindings
  • Index(es):
    • Date
    • Thread