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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to