This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- All Creatures Great & Small | |
- Alphas | |
- Arrested Development | |
+ Avatar: the Last Airbender | |
- Babylon 5 | |
+ Battlestar Galactica | |
- Big Bang Theory | |
+ Caprica | |
+ Castle | |
- Continuum |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSData *bom = nil; | |
NSStringEncoding encoding = ...; | |
NSData *a = [@"a" dataUsingEncoding:encoding]; | |
NSData *aa = [@"aa" dataUsingEncoding:encoding]; | |
if ([a length] * 2 != [aa length]) { | |
NSUInteger characterLength = [aa length] - [a length]; | |
bom = [a subdataWithRange:NSMakeRange(0, [a length]-characterLength)]; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(************************************************************************************ | |
Copies the derived data directory for the current Xcode4 project or workspace to the clipboard | |
The copied path is in POSIX form suitable for pasting into a Terminal instance. | |
Created 03/04/2011 by Ben Dolman | |
This code is in the public domain | |
************************************************************************************) | |
set derivedDataDir to (path to current user folder as string) & "Library:Developer:Xcode:DerivedData:" | |
tell application "Xcode" |
NewerOlder