[Openmcl-devel] Initializing an Obj-C class on the main thread?

Phil pbpublist at comcast.net
Mon Aug 14 17:54:25 PDT 2006


I'm attempting to create a new QTMovie object but don't know quite  
how to accomplish it.  I attempted to create it with:

(ccl::send (ccl::@class "QTMovie") "movie")

and get an Obj-C error: QTMovie class must be initialized on the main  
thread.  So next I try:

(ccl::send (ccl::@class "QTMovie")
					:perform-selector-on-main-thread (ccl::@selector "movie")
					:with-object nil
					:wait-until-done t)

And get the same error.  So what is the correct way to accomplish this?

Thanks,
Phil



More information about the Openmcl-devel mailing list