Creates and returns an NSBlockOperation object and adds the specified block to it.
Original signature is '+ (id)blockOperationWithBlock:(void (^)(void))block'
Available in Mac OS X v10.6 and later.
Declaration Syntax
C# | Visual Basic | Visual C++ |
public static NSBlockOperation BlockOperationWithBlock( Action block )
Public Shared Function BlockOperationWithBlock ( _ block As Action _ ) As NSBlockOperation
public: static NSBlockOperation^ BlockOperationWithBlock( Action^ block )
Parameters
- block (Action)
- The block to add to the new block operation object’s list. The block should take no parameters and have no return value.
Return Value
A new block operation object.
Version Information
- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later)