• 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
Re: NSDatePicker weirdness with time.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDatePicker weirdness with time.


  • Subject: Re: NSDatePicker weirdness with time.
  • From: Fritz Anderson <email@hidden>
  • Date: Wed, 06 Jul 2011 09:11:30 -0500

On 6 Jul 2011, at 12:16 AM, Trygve Inda wrote:

> It seems that NSDateFormatters instantiated in my nibs get their zone set to
> PDT (because of my time settings), despite having called
>
> [NSTimeZone setDefaultTimeZone:[NSTimeZone
> timeZoneWithAbbreviation:@"GMT"]];
>
> Before any nibs are loaded.

Which makes sense. The model is that objects in XIBs/NIBs are instantiated when Interface Builder archives them, not when the NIBs are loaded. Your attempt to initialize them from a runtime default has no effect because they've already been initialized.

	— F

_______________________________________________

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: NSDatePicker weirdness with time.
      • From: Kyle Sluder <email@hidden>
References: 
 >Re: NSDatePicker weirdness with time. (From: Trygve Inda <email@hidden>)

  • Prev by Date: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
  • Next by Date: Re: NIB loading cycle? (sequel to: Dynamically loading NIB files with a common stem)
  • Previous by thread: Re: NSDatePicker weirdness with time.
  • Next by thread: Re: NSDatePicker weirdness with time.
  • Index(es):
    • Date
    • Thread