Boilerplate for Cocoa/iPhone NSURLConnection and NSXMLParser delegates
There may be an easier, more sophisticated way to do this, but here’s one way to add boilerplate code for the methods required of delegates of Cocoa or iPhone NSURLConnection and NSXMLParser. Add parser-delegates.sh and url-delegates.sh to your bin directory, then add them to your User Scripts in Xcode via “Edit User Scripts/Add Script File…”. When you need to implement these methods in a class file, place the cursor where you want the delegates, then execute the scripts via the Xcode User Script facility. The script output will be pasted into the editor at the cursor.