Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: calling scrollPoint: on table view from separate thread locks up app



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >calling scrollPoint: on table view from separate thread locks up app (From: "Chase" <email@hidden>)



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

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.