• 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: reading a text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading a text file


  • Subject: Re: reading a text file
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Sun, 18 May 2003 17:36:38 +0200

At 21:47 Uhr -0400 17.05.2003, Paul N. Schatz wrote:
As part of a Cocoa program, I need to read a BBEdit file into a text field or string. Using 'contentsAtPath:', I get an NSData file of bytes, but I can't seem to subsequently convert that to text. Is there a way to do that, or is there a better way to do the whole thing?

Most text views are subclasses of NSText, which have their own methods to do just that, I think. Though I've only used their RTF reading capabilities up till now.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >reading a text file (From: "Paul N. Schatz" <email@hidden>)

  • Prev by Date: Re: Fading windows
  • Next by Date: Re: Calculation by string
  • Previous by thread: reading a text file
  • Next by thread: Re: reading a text file
  • Index(es):
    • Date
    • Thread