Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Adding to NSTextView in a for loop
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adding to NSTextView in a for loop



I have something like the following:

int i;
for (i=1; i<1000; i++) {
    [myView insertText: @"this is a test\n"];
}

What I observe is that each inserted text does not show up incrementally...
rather I see nothing until the loop is finished and then it all appears at
once.

Is there a way to have it appear incrementally, i.e. each time through the
loop another line appears?

Thanks,


 _______________________________________________
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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.