NSTextView Capacity
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