• 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
NSDateFormatter and \n
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDateFormatter and \n


  • Subject: NSDateFormatter and \n
  • From: Stéphane Sudre <email@hidden>
  • Date: Thu, 31 May 2001 16:51:41 +0200

I'd like to have a NSDateFormatter which would produce the following kind of result when linked to a NSTextField:

05/31/01
03:04 PM

What I can do easily is : 05/31/01 03:04 PM .

But my attempt to make it understand the \r or \n characters failed. Is it something the NSDateFormatter doesn't support ?

I can have a Workaround pretty easily by getting the NSString * of the NSTextField and inserting a \n inside and then setting back the NSString * to the NSTextField but it could be interesting to get this in the Formatter.


  • Prev by Date: Saving an NSTextView, and Nib troubles
  • Next by Date: Re: Icons in NSOutlineView
  • Previous by thread: Re: Saving an NSTextView, and Nib troubles
  • Next by thread: Placing a PDF file form within a cocoa app
  • Index(es):
    • Date
    • Thread