• 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: representing TABs in NSString.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: representing TABs in NSString.


  • Subject: Re: representing TABs in NSString.
  • From: Max Horn <email@hidden>
  • Date: Sun, 2 Dec 2001 17:24:23 +0100

At 1:59 Uhr -0500 02.12.2001, Jake wrote:
How does one delete tab from a mutable character set? I tried

wanttab = [[NSCharacterSet whitespaceCharacterSet] mutableCopy];
[wanttab removeCharactersInString:@"\t"];

While @"\t" and @"\x09" works for

- NSString componentsSeparatedByString:

they fails for

- NSMutableCharacterSet removeCharactersInString:

each time it is recognized as '\' and 't' instead of a tab.

From the top of my head, try:

[wanttab removeCharactersInRange:NSMakeRange('\t',1)];

Cheers,

Max
--
-----------------------------------------------
Max Horn
Software Developer

email: <mailto:email@hidden>
phone: (+49) 6151-494890


  • Follow-Ups:
    • Re: representing TABs in NSString.
      • From: Kurt Revis <email@hidden>
References: 
 >representing TABs in NSString. (From: Jake <email@hidden>)

  • Prev by Date: Storing NSString with attributes
  • Next by Date: Re: awakeFromNib called twice !
  • Previous by thread: representing TABs in NSString.
  • Next by thread: Re: representing TABs in NSString.
  • Index(es):
    • Date
    • Thread