- Big Nerd Ranch Blog (feat. Mark Dalrymple)
- iOS Dev Weekly (mailing list)
- NSHipster
- WWDC Videos
- iOS Programming Guide
- objc.io
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
import Cocoa | |
var input = "This is a test" | |
var expected = "Guvf vf n grfg" | |
/// Advances `i` by `by` through `string`, wrapping to start on hitting | |
/// end. | |
/// NOTE: `by` must be non-negative. | |
func wrappingAdvance(string: String, i: String.Index, by: Int) | |
-> String.Index { |
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
import SpriteKit | |
extension SKShapeNode { | |
func setTiledFillTexture(imageName: String, tileSize: CGSize) { | |
let targetDimension = max(self.frame.size.width, self.frame.size.height) | |
let targetSize = CGSizeMake(targetDimension, targetDimension) | |
let targetRef = UIImage(named: imageName).CGImage | |
UIGraphicsBeginImageContext(targetSize) | |
let contextRef = UIGraphicsGetCurrentContext() |
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
#import <Foundation/Foundation.h> | |
// clang -g -fobjc-arc -framework Foundation -o array array.m | |
void observeObject (id objectToWatch) { | |
// Just a stub to give DTrace something to hook in to. | |
} | |
int main (void) { | |
@autoreleasepool { |
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
property theURL : "" | |
set clipSave to the clipboard | |
tell application "Reeder" | |
activate | |
end tell | |
tell application "System Events" | |
keystroke "c" using {shift down, command down} |
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
#!/bin/sh | |
osascript <<END | |
tell app "Terminal" to do script "cd \"`pwd`\"" | |
END |