On Feb 27, 2008, at 2:40 PM, Hank Heijink wrote:

- (void)updateView
{
        if (useSecondaryThread) {
                if ([view lockFocusIfCanDraw]) {
                        [view drawFromSecondaryThread:view.bounds];
                        [[view window] flushWindow];
                        [view unlockFocus];
                }
        } else {
                [view setNeedsDisplay:YES];
        }
}

I had my test app use a boolean to switch between drawing on the main thread and drawing on the secondary one. Meant to delete that part. Sorry. In this case, useSecondaryThread is obviously YES.

Hank

Hank Heijink
[EMAIL PROTECTED]



_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to