• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: calling scrollPoint: on table view from separate thread locks up app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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

  • Prev by Date: Re: calling scrollPoint: on table view from separate thread locks up app
  • Next by Date: Re: String height in pixels
  • Previous by thread: Re: calling scrollPoint: on table view from separate thread locks up app
  • Next by thread: Memory Management and NSView
  • Index(es):
    • Date
    • Thread