I need to create a dialog from a thread.
Im loading a nib file within the thread using the “initwithwindowNibName” and trying to popup the dialog using “[nsapp runmodalforwindow]”,but the dialog is not popping up..
Please help me out.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
— Dave Dribin, Invoke on Main Thread
Basically, you’ll want to do something like:
[objectThatShowsTheDialog performSelectorOnMainThread:@selector(showTheDialog:) withObject:anObject waitUntilDone:NO];to call the code that puts up the dialog on the the main thread.