Login

Newsflash

command + option + shift will toggle the editor window in Xcode 

Objective-C Method Name to AppleScriptObjC Method Name

Here is a Ruby script to convert Objective-C method names into AppleScriptObjC method names.

Add this script to your user scripts inside Xcode and give it a shortcut. Copy the method name from the Objective-C documentation and paste into your AppleScriptObjC file. Hightlight the code and execute the shortcut!

 

You can view a video on how to set up a user script here.

Before tableView:objectValueForTableColumn:row: After tableView_objectValueForTableColumn_row_()

#!/usr/bin/env ruby -w
line = STDIN.read.strip.gsub(':', '_')
print line[-1] == 95 ? line + "()" : line

Add comment


Security code
Refresh

Product Categories