• 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 behavior
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDateFormatter behavior


  • Subject: NSDateFormatter behavior
  • From: John MacMullin <email@hidden>
  • Date: Sat, 13 Feb 2016 15:23:42 -0700

I have a date formatter applied to a formcell: 'MM/dd/yyyy’.

Upon entering the year, the field ‘completes' so that when I enter 01/01/2 it converts it to 01/01/0002, inserting the zeros.

How do I stop the 'completion' behavior?

I have looked at:    [aTextView setAutomaticQuoteSubstitutionEnabled:NO]; and [aTextView setAutomaticTextReplacementEnabled:NO];

but can’t figure out how to get the textfield textview from the NSFormCell.  This of course assumes that this is the correct direction to take.

Any ideas?

Best regards,

John
_______________________________________________

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


  • Prev by Date: Re: How to write an RSS client for iOS
  • Next by Date: Secure coding NSArray
  • Previous by thread: Re: Third party keyboards in iOS
  • Next by thread: Secure coding NSArray
  • Index(es):
    • Date
    • Thread