English 中文(简体)
NNS 业务 等待所有业务 结束的区块业务
原标题:NSOperationQueue waitUntillAllOperationsAreFinished blocks operations

我创建了自己的NS行动子类,现在我想让其中的一些案例平行运行。因为这是一个同时同时进行的行动,所以我覆盖了它。

- (void)start {
    [self willChangeValueForKey:@"isExecuting"];
    isExecuting = YES;
    [self didChangeValueForKey:@"isExecuting"];

    error=NO;
    startedSection=NO;

    // start the task
    [task launch];
}

- (BOOL)isConcurrent {
    return YES;
}

- (BOOL)isExecuting {
    return isExecuting;
}

- (BOOL)isFinished {
    return isFinished;
}

当操作完成时执行下列代码:

[self willChangeValueForKey:@"isExecuting"];
[self willChangeValueForKey:@"isFinished"];
isExecuting = NO;
isFinished = YES;
[self didChangeValueForKey:@"isExecuting"];
[self didChangeValueForKey:@"isFinished"];

当我在将操作添加到 myQueue 之后添加 < my Queue wait all operations Arefinished> < my Queue wait all Offices Arefinished> 。 当我删除 < my Quee wait all Operations All All All All All Operations All All All All All All All All All All Appers Applements Appried] < 之后添加 < /code> 。 当我删除了 < my, < my quie wait all Oll All All All All Oust All Apperations All All All All All All Offed] < < < < < /code> < 之后, < unt it but a facts a fact is a ex a / / unse access a unt unt access access access access access a / unt / unt un

问题回答

操作的货币如何执行? 我怀疑你再次将东西发送到主线上,你也会在 -wait Untill All Offices Arefinished 的主线中堵塞主线。这当然会陷入僵局。





相关问题
Taking picture with QTCaptureView

Is it possible to simply take a picture and save it somewhere using a QTCaptureView and Apple s built-in iSight? I ve seen lots of tutorials on recording video but none on simply taking a picture. Any ...

Controlling OSX windows

I m trying to control windows of a foreign OSX applications from my application. I d like to 1. move the windows on the screen 2. resize the windows on the screen 3. change the currently active window ...

objective-c: Calling a void function from another controller

i have a void, like -(void) doSomething in a specific controller. i can call it in this controller via [self doSomething], but i don t know how to call this void from another .m file. I want to call ...

NSUndoManager and runModalForWindow:

I have a simple Core Data app which displays a list of entities in the main window. To create or add new entities, I use a second modal window with a separate managed object context so changes can be ...

NSMutableArray values becoming "invalid"

I m trying to show a database information in a tableview and then the detailed information in a view my problem is as follow: I created a NSMutableArray: NSMutableArray *myArray = [[NSMutableArray ...

How to get a flash url in a webpage using a webframe?

As we know , When we load frame from webpage of safari, we will invoke the delegate methods of webkit informal protocol(WebFrameLoadDelegate): webView:didStartProvisionalLoadForFrame: webView:...