Re: NSTextView Capacity
Re: NSTextView Capacity
- Subject: Re: NSTextView Capacity
- From: John Stiles <email@hidden>
- Date: Wed, 2 Aug 2006 14:59:22 -0700
I do not believe there is a limit (other than running out of memory).
On Aug 2, 2006, at 2:21 PM, Cinque Amistead wrote:
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:
40blizzard.com
This email sent to email@hidden
_______________________________________________
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