NSObject performSelectorOnMainThread:
NSObject performSelectorOnMainThread:
- Subject: NSObject performSelectorOnMainThread:
- From: spike <email@hidden>
- Date: Thu, 13 Mar 2003 11:51:30 -0500
In my app, I have a thread that reads directory data and fills my
NSTableView's dataSource with the info, and since you shouldn't update
the GUI from a thread, I made a method called -
(void)updateMainGUI:(NSNumber *)start
so I have my controller class call it liek this (in my thread method):
[self performSelectorOnMainThread: @selector(updateMainGUI:)
withObject: [NSNumber numberWithBool: YES] waitUntilDone: NO];
to test it out, I did this in my updateMainGUI:
- (void)updateMainGUI:(NSNumber *)isStarting {
NSLog(@"updateMainGUI!!!! Go go go!");
}
EVERY time I call performSelectorOnMainThread, I get a signal 11
SIGSEGV.
I tried calling withObject:nil, and waitUntilDone: YES with no luck.
any ideas why this is happening? I tried googling to see if anyone else
had this problem but, no dice. =/
...spike
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.