• 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: threads and GUI
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: threads and GUI


  • Subject: Re: threads and GUI
  • From: tahome izwah <email@hidden>
  • Date: Tue, 1 Sep 2009 12:08:00 +0200

Yes, it works fine as long as it's just a plain alert and not a sheet
etc. I've read on the web that AppKit calls should not be made on
threads other than the main thread but the Apple docs don't really
cover this (last time I checked anyway).

If you're not convinced you could display the dialog using a
-performSelectorOnMainThread call which would alleviate the problem
altogether.

This is Cocoa, not Carbon though (but you can mix them if you wish).

--th

2009/9/1 john smith <email@hidden>:
>
> Thanks.
>
> How about calling cocoa ui calls, like NSAlert, from the thread then. Is
> that doable? (while still running the "main gui" as carbon).
>
>
> Thanks,
>
> Michael Olsen
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: threads and GUI
      • From: Markus Fritze <email@hidden>
References: 
 >Re: threads and GUI (From: tahome izwah <email@hidden>)
 >RE: threads and GUI (From: john smith <email@hidden>)
 >Re: threads and GUI (From: Markus Fritze <email@hidden>)
 >RE: threads and GUI (From: john smith <email@hidden>)

  • Prev by Date: RE: threads and GUI
  • Next by Date: Re: threads and GUI
  • Previous by thread: RE: threads and GUI
  • Next by thread: Re: threads and GUI
  • Index(es):
    • Date
    • Thread