• 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: NSDateFormatter vs. -setTimeZone: ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDateFormatter vs. -setTimeZone: ?


  • Subject: Re: NSDateFormatter vs. -setTimeZone: ?
  • From: mmalcolm crawford <email@hidden>
  • Date: Wed, 18 Jan 2006 20:21:24 -0800


On Jan 18, 2006, at 7:51 PM, Jim Correia wrote:

Is it expected that -setTimeZone: is ignored for NSDateFormatters not using the 10.4 behavior?

Yes:
"With Mac OS X version 10.4 and later, NSDateFormatter has two modes of operation (or behaviors). By default, instances of NSDateFormatter have the same behavior as they did on Mac OS X versions 10.0 to 10.3. You can, however, configure instances (or set a default for all instances) to adopt a new behavior implemented for Mac OS X version 10.4. See Data Formatting Programming Guide for Cocoa(*) for a full description of the old and new behaviors."


(<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ ObjC_classic/Classes/NSDateFormatter.html>)

(*) ->

<http://developer.apple.com/documentation/Cocoa/Conceptual/ DataFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/ TP40002369>

"The new methods in 10.4 do not do anything when invoked on a 10.0- style formatter, and return a generic return value when required to return something—you should therefore not invoke the new methods on a 10.0-style formatter. On a 10.4-style formatter, the old methods map approximately to one or more new methods or attributes, but you should use the new methods directly when possible."

mmalc




_______________________________________________ Do not post admin requests to the list. They will be ignored. Cocoa-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >NSDateFormatter vs. -setTimeZone: ? (From: Jim Correia <email@hidden>)

  • Prev by Date: using LSMinimumSystemVersion
  • Next by Date: Re: using LSMinimumSystemVersion
  • Previous by thread: NSDateFormatter vs. -setTimeZone: ?
  • Next by thread: Office 2003 (Windows) style menus
  • Index(es):
    • Date
    • Thread