• 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: Stripping newlines/blanks when pasting on an NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stripping newlines/blanks when pasting on an NSTextField


  • Subject: Re: Stripping newlines/blanks when pasting on an NSTextField
  • From: Rosyna <email@hidden>
  • Date: Sat, 28 Oct 2006 14:51:12 -0700

Most of the time (in my experience) users only have leading or trailing whitespace that needs to be remove when pasting into text fields due to Cocoa's silly text selection "rules".

Since, in our example, they're pasting in codes from emails, all we worry about is the trailing and leading whitespace. Of course, YMMV.

Ack, at 10/28/06, I. Savant said:


I'm still seeing a problem, though: You're trimming only the ends, but what about the middle? What if the user copies a few paragraphs from a text editor and pastes it here?

--


Sincerely, Rosyna Keller Technical Support/Carbon troll/Always needs a hug

Unsanity: Unsane Tools for Insanely Great People

It's either this, or imagining Phil Schiller in a thong.
_______________________________________________
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


  • Follow-Ups:
    • Re: Stripping newlines/blanks when pasting on an NSTextField
      • From: Michele Balistreri <email@hidden>
References: 
 >Stripping newlines/blanks when pasting on an NSTextField (From: Michele Balistreri <email@hidden>)
 >Re: Stripping newlines/blanks when pasting on an NSTextField (From: Rosyna <email@hidden>)
 >Re: Stripping newlines/blanks when pasting on an NSTextField (From: "I. Savant" <email@hidden>)
 >Re: Stripping newlines/blanks when pasting on an NSTextField (From: Rosyna <email@hidden>)
 >Re: Stripping newlines/blanks when pasting on an NSTextField (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Get selectedItem (and items) in NSOutlineView
  • Next by Date: Re: Stripping newlines/blanks when pasting on an NSTextField
  • Previous by thread: Re: Stripping newlines/blanks when pasting on an NSTextField
  • Next by thread: Re: Stripping newlines/blanks when pasting on an NSTextField
  • Index(es):
    • Date
    • Thread