I am trying to mimic the live template for alloc where one would type alloc and hit tab and AppCode inserts [[MyObject alloc] init]. I want to make one for new so AppCode completes it to [MyObject new];
My problem is that it only recognizes the correct classnamewhen I have two open square brackets in the beginning of the live templeate like this [[$TYPE$ new];$END$ but this leaves me with noncompiling code since one bracket is to much. So remove the first bracket I thought and now it does not recognize the correct class name any more and inserts just plain NSObject everytime.
Variable $Type" is declared like this: expression: className() default value: "NSObject"
Any hints how I can make my live template work?