Author Archives: hashier

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

Multiple Xcode targets and tests

Multiple Xcode targets Go to targets -> Select target -> Duplicate (I duplicated a target which name was “tests”) Rename the target to whatever you want (I use “Tooth” here) Go to “Manage Schemes” and delete the scheme with the … Continue reading

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

mdfind & mdls & Spotlight

Searching for files with Spotlight is awesome and you can actually use the power of Spotlight even in the console. But first let me show you some nice features of Spotlight. Spotlight Searching for all images that contain “me”, are … Continue reading

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

iTunes Link Maker

Create links for the iTunes Store, the App Store, the iBookstore, and the Mac App Store. With Link Maker, you can create links to content on the iTunes Store, the App Store, the iBookstore, and the Mac App Store, and … Continue reading

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

iOS localization with iLocalize

I did it once and now I needed to do it again – and of course I forgot how to do it, so this time I’ll write it down how localisation of an iOS project works. I don’t use nib … Continue reading

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

git diff and objective c

When you are writing Objective-C code and using git you probably realised that the `git diff` is not mentioning the function name in which the change occurred. This can easily be changed by just running following cmd inside your git … Continue reading

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

Mavericks Wallpapers and Screen Saver images

Idea: Have folder with all the Mavericks wallpapers and screen saver images but without wasting a lot of space. Why duplicate all of them, so you can set it as the folder that should be used for randomly choosing a … Continue reading

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

Deep Wizardry: Stack Unwinding

Nice blog post about stack unwinding.

Posted in computer | Tagged , , | Leave a comment

Command to create installable OS X Mavericks 10.9 USB drive

Command to create installable OS X Mavericks 10.9 USB drive..

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