a oneway
method is asynchronous (the result is not immediately expected)[1]. oneway
is used with the distributed objects API. [2]
But i found below code in SCPlugin
+ (oneway void) executeShellCommandAsynchronously:(NSString*)command
{
[[self taskForShellCommand:command] launch];
return;
}
+ (void) refreshAllFinderItems
{
//code
if (cmd) {
[ShellTask executeShellCommandAsynchronously:cmd];
}
}
will oneway
behave same in cocoa application(without distributed object)?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…