Re: NSDatePicker updates its values on changing System's time zone
Re: NSDatePicker updates its values on changing System's time zone
- Subject: Re: NSDatePicker updates its values on changing System's time zone
- From: Keary Suska <email@hidden>
- Date: Thu, 26 Nov 2009 08:59:56 -0700
On Nov 26, 2009, at 8:15 AM, Arun wrote:
> Hi All,
> In my application i use a NSDatePicker with stepper to display hours and
> minutes.
> When i change the Timezone of the system in System Preferences, the value in
> the Date Picker changes.
> How can we prevent change of value in the Date picker when system time zone
> changes?
IIRC, NSDatePicker defaults to the system-specified time zone, so it is no wonder it changes when the system prefs are changed. This is likely desirable in most cases.
Have you tried explicitly setting the time zone on the date picker before editing begins? In any case, I am not sure how the control knows that the timezone has changed. There must be some sort of notification sent, but how to find out escapes me at the moment.
HTH,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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