Created
November 2, 2008 19:12
-
-
Save cacaodev/21732 to your computer and use it in GitHub Desktop.
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
var string = @"/a/b"; | |
var selector = @selector(lastPathComponent); | |
var invocation = [CPInvocation invocationWithMethodSignature:nil]; | |
[invocation setTarget:string]; | |
[invocation setSelector:selector]; | |
var result = [invocation invoke]; | |
CPLogConsole("RESULT = "+ result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment