• 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
NSTextView Capacity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView Capacity


  • Subject: NSTextView Capacity
  • From: Cinque Amistead <email@hidden>
  • Date: Wed, 2 Aug 2006 15:21:21 -0600

Code Snippet:				

switch(streamEvent)
{
case NSStreamEventHasBytesAvailable:
{
uint8_t buf[1024];
unsigned int len = 0;
len = [(NSInputStream*)stream read:buf maxLength:1024];
if(len)
{
if(data)
{
buf[len] = 0;
NSString * telnetDataString = [NSString stringWithCString: (char*)buf length:len];
[telnetData insertText:telnetDataString];
break;
}



The question is what is the limit (if there is one) on NSTextView, in this example telnetData.


(Remembering the old days a TextEdit record could hold 32K so as we streamed data we checked for a max data condition and took appropriate action.)


_______________________________________________ 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: NSTextView Capacity
      • From: John Stiles <email@hidden>
  • Prev by Date: An apparent equality is not...
  • Next by Date: Re: An apparent equality is not...
  • Previous by thread: Re: An apparent equality is not...
  • Next by thread: Re: NSTextView Capacity
  • Index(es):
    • Date
    • Thread