Re: Keyword Filtering & Weekday Selection
Re: Keyword Filtering & Weekday Selection
- Subject: Re: Keyword Filtering & Weekday Selection
- From: Nick Zitzmann <email@hidden>
- Date: Tue, 3 Feb 2009 19:07:14 -0700
On Feb 3, 2009, at 6:43 PM, Walker Argendeli wrote:
1. Let say you have a list of keywords (say two separate arrays) and
you want to be able to filter a table/calendar view/etc. by a
combination of a choice from each of the arrays. How would you go
about creating something like that in interface builder? A
screenshot of an example I encountered in an application is located
here: softworksfiles.com/filtering.png
There is no built-in control that does that, but there is a third-
party control that does what you want to do, called "AMButtonBar". You
can find it at <http://www.harmless.de/cocoa.php>.
2. Secondly, let's say I want to be able to select day(s) of the
week. I saw an example like this softworksfiles.com/weekday.png in
an application, but am not sure how to replicate it. I opened the
nib file for that window from the package's resources directory, and
when I clicked on it, a little circle popped up underneath it like
one you would see for a NSFormatter, and when I clicked on it, it
said prototype. Obviously, since it's a compiled application that's
not mine, I can't see more than that.
Others have already answered your question, but I'd just like to add
that if you create your own day of the week selector matrix, make sure
you localize it. In all of the Americas and a few places in Europe,
the first day of the week is Sunday, but in most of the rest of the
world, the first day of the week is either Monday or (I think) Friday.
You can find this out for yourself by calling [[NSCalendar
currentCalendar] firstWeekday].
Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
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