Skip to content

Instantly share code, notes, and snippets.

View tgaul's full-sized avatar

Troy Gaul tgaul

View GitHub Profile
@tgaul
tgaul / gist:9156499
Last active August 29, 2015 13:56 — forked from kyleve/gist:8213806
/**
Provides the ability to verify key paths at compile time.
If "keyPath" does not exist, a compile-time error will be generated.
Example:
// Verifies "isFinished" exists on "operation".
NSString *key = SQKeyPath(operation, isFinished);
// Verifies "isFinished" exists on self.