Re: calling scrollPoint: on table view from separate thread locks up app
Re: calling scrollPoint: on table view from separate thread locks up app
- Subject: Re: calling scrollPoint: on table view from separate thread locks up app
- From: Fritz Anderson <email@hidden>
- Date: Thu, 9 Aug 2007 15:26:13 -0500
Possibly because you're ignoring the value returned by
lockFocusIfCanDraw.
Possibly because you're locking the table view, then drawing in the
scroll view.
Possibly because scrolling changes things that aren't locked when you
lock the drawing state. I don't know that it does, but it feels
likely to me.
— F
On Aug 9, 2007, at 3:14 PM, Chase wrote:
the following line works fine when it's executed in the main thread...
[mytableview scrollPoint:NSMakePoint(0.0,0.0)];
... but when run from a separate thread -- and ONLY if the table
view is not already scrolled to the 0,0 position -- the app locks up.
i tried:
[mytableview lockFocusIfCanDraw];
[mytableview scrollPoint:NSMakePoint(0.0,0.0)];
[mytableview unlockFocus];
... but that's even worse -- it locks up **every** time.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden