Re: Automatically select current system's timezone from popup button

2009-03-09 Thread Kyle Sluder
On Tue, Mar 10, 2009 at 1:12 AM, Ron Fleckner wrote: > Or just get the time zone from the name of the item: In general, tying constant identifiers to UI elements like this is a very bad idea; it makes localization very hard and introduces stronger coupling between the UI and your code. In this s

Re: Automatically select current system's timezone from popup button

2009-03-09 Thread Ron Fleckner
On 10/03/2009, at 3:30 PM, Nick Zitzmann wrote: On Mar 9, 2009, at 9:33 PM, Jushin wrote: So, basically, the popup button has the list of NSString of timezone name. However, when I launch my application, I would like to make my application automatically select current system's timezone fro

Re: Automatically select current system's timezone from popup button

2009-03-09 Thread Nick Zitzmann
On Mar 9, 2009, at 9:33 PM, Jushin wrote: So, basically, the popup button has the list of NSString of timezone name. However, when I launch my application, I would like to make my application automatically select current system's timezone from the list. Also, when a user select a timezone fro

Automatically select current system's timezone from popup button

2009-03-09 Thread Jushin
I have a NSPopUpButton list, which contains name of timezones. When I construct the popup button, I get the list of the timezone using [NSTimeZone knownTimeZoneNames] and then constructed another array using [NSTimeZone timeZoneWithName:name] So, basically, the popup button has the list of NSStrin