• 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: Remove excess line breaks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Remove excess line breaks


  • Subject: Re: Remove excess line breaks
  • From: Chris Ridd <email@hidden>
  • Date: Mon, 15 Dec 2003 19:06:22 +0000

On 15/12/03 5:14 pm, Rick Anderson <email@hidden> wrote:

> On Monday, December 15, 2003, at 08:42 AM,
> email@hidden wrote:
>
>> Should be a "while" not a "if" to make the Cocoa version perform
>> exactly as the Perl one.
>
> *SIgh* I can't believe I did that. Thank you for pointing it out.

You should probably also use all the possible Unicode line end characters
instead of hardwiring something.

<http://developer.apple.com/documentation/Cocoa/Reference/Foundation/ObjC_cl
assic/Classes/NSCharacterSet.html#//apple_ref/doc/uid/20000157/CJBDJHDJ>

There's also CFStringGetLineBounds(), which might be quite useful.

<http://developer.apple.com/documentation/CoreFoundation/Reference/CFStringR
ef/index.html#//apple_ref/doc/uid/20001211>

Cheers,

Chris
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Remove excess line breaks (From: Rick Anderson <email@hidden>)

  • Prev by Date: Re: Drag & Drop on in a NSMatrix
  • Next by Date: RE: Adding items to the menu that appears when you right-click a file in the finder?
  • Previous by thread: Re: Remove excess line breaks
  • Next by thread: Which method to show the value of NSDateFormatter etc...
  • Index(es):
    • Date
    • Thread