Some code snippets for Xcode 4 that I find useful.
Based on Kendall Helmstetter Gelner's example on StackOverflow.
- MyTest - original example from StackOverflow. Type "nurse" and you will get "NSLog(@"Hello Nurse %@", <#Thing#>);"
- NSLog - based on the original NSLog macro from older versions of XCode (log control+.). Type l and you will get NSLog(@"<#Comment#>");
- VarLog - Just an NSLog statement that lets you echo a variable and specify the name & type also. NSLog(@"<#Variable Name#>: %<#Variable Type#>", <#Variable#>);