mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Improve documentation
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14911 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a70291d6c9
commit
a82c918dea
1 changed files with 7 additions and 11 deletions
|
@ -778,8 +778,8 @@ static NSDate *theFuture;
|
|||
* an argument, but does so in the main thread of the program. The receiver
|
||||
* and anObject are both retained until the method is performed.
|
||||
* </p>
|
||||
* <p>The selector is performed when the runloop of the main thread is in
|
||||
* one of the modes specified in anArray, or if there are no modes in
|
||||
* <p>The selector is performed when the runloop of the main thread next
|
||||
* runs in one of the modes specified in anArray. if there are no modes in
|
||||
* anArray, the method has no effect and simply returns immediately.
|
||||
* </p>
|
||||
* <p>The argument aFlag specifies whether the method should wait until
|
||||
|
@ -852,25 +852,21 @@ static NSDate *theFuture;
|
|||
|
||||
/**
|
||||
* Invokes -performSelectorOnMainThread:withObject:waitUntilDone:modes:
|
||||
* using the supplied arguments and an array containing common modes.
|
||||
* using the supplied arguments and an array containing common modes.<br />
|
||||
* These modes consist of NSRunLoopMode, NSConnectionreplyMode, and if
|
||||
* in an application, the NSApplication modes.
|
||||
*/
|
||||
- (void) performSelectorOnMainThread: (SEL)aSelector
|
||||
withObject: (id)anObject
|
||||
waitUntilDone: (BOOL)aFlag
|
||||
{
|
||||
static NSArray *commonModes = nil;
|
||||
|
||||
if (commonModes == nil)
|
||||
{
|
||||
commonModes = [[NSArray alloc] initWithObjects:
|
||||
NSDefaultRunLoopMode, NSConnectionReplyMode, nil];
|
||||
}
|
||||
[self performSelectorOnMainThread: aSelector
|
||||
withObject: anObject
|
||||
waitUntilDone: aFlag
|
||||
modes: commonModes];
|
||||
modes: commonModes()];
|
||||
}
|
||||
@end
|
||||
|
||||
typedef struct { @defs(NSThread) } NSThread_ivars;
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue