Graphics Programs Reference
In-Depth Information
Declaring block variables
Blocks, because they are objects, can be pointed to by variables. Think about variable de-
clarations we've seen before:
NSString *string;
This pointer variable has a name and a type. Its name is string , and its type is
NSString * . The type of a pointer identifies the class of the instance it will point to.
A variable that points at a block (a block variable ) has the same two pieces: a name and a
type. The type of a block variable identifies the arguments and the return value of the
Search WWH ::




Custom Search