Skip to content

Instantly share code, notes, and snippets.

View rjstelling's full-sized avatar
🕶️
Encrypting Bits

Richard Stelling rjstelling

🕶️
Encrypting Bits
View GitHub Profile
@rjstelling
rjstelling / SuccinctObjCMacros.h
Last active December 15, 2015 04:50
Macros to make Objective-C more C-like. Feel free to fix bugs or add new macros.
// Make a [UI]ViewController by just passing the name, the .xib needs to have the same name as the Class howerver (Xcode default)
#define MakeViewController(class_and_nib_name) [[class_and_nib_name alloc] initWithNibName:[NSString stringWithUTF8String:#class_and_nib_name] bundle:nil]
@rjstelling
rjstelling / cs_xproj_validate.sh
Last active October 9, 2019 12:05
SEE: https://github.com/rjstelling/Xcode-Project-Validate. A very simple shell script to read .xcodeproj files and check if there are issues with the CODE_SIGN_IDENTITY. Having multiple entries can cause build errors (especially when Archiving or command line building). Link to StackOverflow question answering some questions about when and why t…
# /bin/bash
#Usage: $ ./cs_xproj_validate.sh path/to/xcode/project/file/theproject.xcodeproj
#More info: http://stackoverflow.com/q/13962341/89035
PROJECT_FILE="$1/project.pbxproj"
PREVIOUS_LINE=-1
for LINE in `cat "$PROJECT_FILE" | grep -n CODE_SIGN_IDENTITY | grep -o -E '^([0-9]*)'`
//
// NSString+Verbose.h
//
// An NSString category for overly verbose methods that have little or no practical application.
//
@interface NSString (Verbose)
- (BOOL)isNotEqualToString:(NSString *)aString;
@rjstelling
rjstelling / iOS Support Matrix Text (english)
Created December 3, 2012 13:40
This is the text that needs translating so we can release localised versions of the iOS Support Matrix. Feel free to fork and translate: http://www.empiricalmagic.com/post/34832825209/ios-support-matrix-v2-0-winter-2012
iOS Support Matrix
Winter 2012 Edition - v2.0
iPhone June 2007
iPod touch Sept 2007, Feb 2008 (32GB only)
iPhone 3G July 2008
iPod touch (2nd Generation) Sept 2008 Sept 2009 - (8GB only)
iPhone 3GS June 2009
iPod touch (3rd Generation) Sept 2009
iPad April 2010
iPhone 4 June 2010
@rjstelling
rjstelling / iOS 6 Features
Created September 19, 2012 14:31
iOS 6 Features listed by country (alphabetically), not by feature as is the case on Apple's website, http://www.apple.com/ios/feature-availability/
Afghanistan
Maps: Standard
Maps: Satellite
Albania
Maps: Standard
Maps: Satellite
Maps: Directions
Maps: Turn-by-Turn Navigation