• 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: Newbie question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Newbie question


  • Subject: Re: Newbie question
  • From: Matt Neuburg <email@hidden>
  • Date: Wed, 11 Sep 2002 08:43:27 -0700

On Wed, 11 Sep 2002 14:00:32 +0100, Mark Woollard <email@hidden> said:

>I have a NSTextView object which I want to load with the ASCII text
>from a disk file. What's the recommended way to do this? Is it a case
>of loading text into an NSString then setting the text

What you see in an NSTextView *is* an NSString so there's no way to avoid
stringification of your text. If the problem is that the text is huge and
you don't want to load it in all at once, NSData lets you read the file
"mapped", meaning basically that whatever you don't need stays on disk. m.
--

matt neuburg, phd = email@hidden, http://www.tidbits.com/matt
pantes anthropoi tou eidenai oregontai phusei
Subscribe to TidBITS! It's free and smart. http://www.tidbits.com/
_______________________________________________
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.

  • Follow-Ups:
    • Re: Newbie question
      • From: Mark Woollard <email@hidden>
  • Prev by Date: argh...linking problems with AppleShare client lib
  • Next by Date: Plugin design question
  • Previous by thread: Newbie question
  • Next by thread: Re: Newbie question
  • Index(es):
    • Date
    • Thread