Skip to content
An experimental "switch-case" implementation for ObjC objects
Objective-C C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
objcswitch.xcodeproj
.gitignore
NSObject+objcswitch.h
NSObject+objcswitch.m
README.md
ios_app-Info.plist
main.m
objcswitch_case.def.h
objcswitch_switch.def.h
objcswitch_tests.m
tests-Info.plist

README.md

objcswitch

An experiment with blocks, objective-C, and adding features to the language.

The implementation lets you write stuff like that :

[[@"foo" switch]
 case:@"bar" :^{ success = NO; }
 case:@"baz" :^{ success = NO; }
 case:@"foo" :^{ success = YES; }
 ];
Something went wrong with that request. Please try again.