[obj performSelectorOnMainThread: ...] vs. [runLoop performSelector: ...]
[obj performSelectorOnMainThread: ...] vs. [runLoop performSelector: ...]
- Subject: [obj performSelectorOnMainThread: ...] vs. [runLoop performSelector: ...]
- From: Just van Rossum <email@hidden>
- Date: Tue, 13 May 2003 10:39:11 +0200
Given a *non-threaded* application, is there any significant difference
between using
[obj performSelectorOnMainThread: aSelector withObject: anArg
waitUntilDone NO];
and
[[NSRunLoop currentRunLoop] performSelector: aSelector
target: obj argument: anArg order: someLargeishValue
modes: [NSArray arrayWithObject: NSDefaultRunLoopMode]];
?
I want to asynchronously do some work in small chunks, without using
threads and without blocking the UI. I think I'd prefer to use the
former method as it's more convenient.
Just
_______________________________________________
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.