This file contains 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
// | |
// main.m | |
// Tag Cleaner | |
// | |
// Created by Dave DeLong on 11/17/12. | |
// Copyright (c) 2012 Dave DeLong. All rights reserved. | |
// | |
// requires https://github.com/evernote/evernote-sdk-mac |
This file contains 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 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