Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| // In toolbarWillAddItem: create a new NSMenu | |
| // set the delegate and add the menu as part of a NSMenuItem as menuFormRepresentation | |
| - (void)menuNeedsUpdate:(NSMenu *)menu | |
| { | |
| // clear out in case we can no longer provide this service | |
| [menu removeAllItems]; | |
| NSURL *fileURL = [self.document fileURL]; |
| #!/usr/bin/env sh | |
| ## | |
| # This is script with usefull tips taken from: | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # | |
| # install it: | |
| # curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
| # |
| #!/usr/bin/env ruby | |
| ########################################################################### | |
| # Script to be called as an Xcode 4 behaviour which will attempt to | |
| # uncrustify all source files in the open project. | |
| # | |
| # (c) Copyright 2012 David Wagner. | |
| # | |
| # Complain/commend: http://noiseandheat.com/ | |
| # | |
| #*************************************************************************# |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| // | |
| // UIDeviceHardware.h | |
| // | |
| // Used to determine EXACT version of device software is running on. | |
| #import <Foundation/Foundation.h> | |
| @interface UIDeviceHardware : NSObject | |
| - (NSString *) platform; |
| // | |
| // NSObject+BlockObservation.h | |
| // Version 1.0 | |
| // | |
| // Andy Matuschak | |
| // andy@andymatuschak.org | |
| // Public domain because I love you. Let me know how you use it. | |
| // | |
| #import <Cocoa/Cocoa.h> |
| // | |
| // SSScrollView.h | |
| // | |
| /* | |
| Get a delegate callback when the scroll view scrolls. | |
| */ | |
| #import <Cocoa/Cocoa.h> |