• 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: NSDrawerOpeningState woes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSDrawerOpeningState woes


  • Subject: Re: NSDrawerOpeningState woes
  • From: glenn andreas <email@hidden>
  • Date: Mon, 4 Feb 2008 12:59:44 -0600


On Feb 4, 2008, at 12:31 PM, Jurgen Vermeiren wrote:

It all works well except that there is no way I can have the drawer to
open from within the secondary thread. The text view in the drawer does
get updated but I won't see it if the drawer is not already opened.


Any suggestion?


You are calling the [drawer open] on the main thread by something like:

[drawer performSelectorOnMainThread: @selector(open) withObject: nil waitUntilDone: YES];

correct? Because doing any sort of UI from secondary threads is usually wrong*, and likely to not work (or worse)

(*if you are careful, you can draw into a view from a secondary thread)


Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium | flame : flame fractals & strange attractors : build, mutate, evolve, animate




_______________________________________________

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: 
 >NSDrawerOpeningState woes (From: "Jurgen Vermeiren" <email@hidden>)

  • Prev by Date: Re: Custom view, drawRect, clip?
  • Next by Date: Re: Custom view, drawRect, clip?
  • Previous by thread: NSDrawerOpeningState woes
  • Next by thread: Re: NSDrawerOpeningState woes
  • Index(es):
    • Date
    • Thread