• 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: Michele Balistreri <email@hidden>
  • Date: Sun, 29 Oct 2006 00:05:51 +0200

Hi, thank you for your help, i know how to remove characters from a string, my problem was giving them instant feedback of what has been done, say they paste 2 lines, they should be directly displayed as one in the field. That is possible only with formatters, or there are some special options of NSTextField?

Regards,
Michele Balistreri



Il giorno 28/ott/06, alle ore 23:51, Rosyna ha scritto:

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:
40briksoftware.com


This email sent to email@hidden



Regards, Michele Balistreri brik. Lead programmer.



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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: "I. Savant" <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>)
 >Re: Stripping newlines/blanks when pasting on an NSTextField (From: Rosyna <email@hidden>)

  • Prev by Date: Re: Stripping newlines/blanks when pasting on an NSTextField
  • 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