Tag Archives: apple

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

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

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

Brendan’s blog » The USE Method: Mac OS X Performance Checklist

“Mac OS X Performance Checklist” is one of the best blog posts I have read in a long time. The posts describes how find bottlenecks if something is not working as it should be. Awesome read! via Brendan’s blog » … Continue reading

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

Fixing TruePreview for Apple Mail 6.6

If you started mail before these two commands make sure to copy the plugin from the Bundle (Disbaled) folder back to the Bundle folder. defaults write ~/Library/Mail/Bundles/TruePreview.mailbundle/Contents/Info SupportedPluginCompatibilityUUIDs -array-add DAFFB2B4-77BC-4C25-8CE1-2405E652D54B defaults write ~/Library/Mail/Bundles/TruePreview.mailbundle/Contents/Info SupportedPluginCompatibilityUUIDs -array-add 2B98D2DD-000B-4521-83EB-7BFCB9B161C8

Posted in computer | Tagged , , , | 7 Comments