Tag Archives: pointer

Blocks, closures on stack and heap

Blocks on the Stack While reading through Apple’s open source code (headers) I came across queue.h and stumbled over the following warning: /*! * […] * * dispatch_block_t block; * * if (x) { * block = ^{ printf("true\n"); }; … Continue reading

Posted in computer | Tagged , , , , , , , , | Leave a comment

Property: strong and copy

Property: strong and copy // // main.m // strong_retain_copy // // Created by Christopher Loessl on 25/02/14. // Copyright (c) 2014 Christopher Loessl. All rights reserved. // #import <Foundation/Foundation.h> @interface Person : NSObject @property (strong, nonatomic) NSString *name; @property (copy, … Continue reading

Posted in computer | Tagged , , , , , | Leave a comment