Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 7d14faedcc
Fetching contributors…

Cannot retrieve contributors at this time

99 lines (94 sloc) 2.871 kb
/**
Marc Liyanage Xcode text macro specifications
http://github.com/liyanage/xcode-text-macros/
*/
(
{
Identifier = objc.stringliteral;
BasedOn = objc;
IsMenuItem = YES;
Name = "String Literal";
TextString = "@\"<#!string!#>\"";
OnlyAtBOL = NO;
},
{
Identifier = objc.log.0arg;
BasedOn = objc;
IsMenuItem = YES;
Name = "NSLog() Call";
TextString = "NSLog$(PreFunctionArgsSpacing)($(InFunctionArgsSpacing)@\"<#!message!#>\"$(InFunctionArgsSpacing));";
CompletionPrefix = log;
OnlyAtBOL = YES;
IncludeContexts = ( "xcode.lang.objc.block" );
CycleList = (
objc.log.0arg,
objc.log.1arg,
);
},
{
Identifier = objc.log.1arg;
BasedOn = objc;
IsMenuItem = YES;
Name = "NSLog() Call 1 Argument";
TextString = "NSLog$(PreFunctionArgsSpacing)($(InFunctionArgsSpacing)@\"<#message#> %@\", <#!argument!#>$(InFunctionArgsSpacing));";
CompletionPrefix = log1;
OnlyAtBOL = YES;
IncludeContexts = ( "xcode.lang.objc.block" );
},
{
Identifier = c.block.if.singlestatement;
BasedOn = c.block.if;
Name = "If Block Single Statement";
IsMenuItem = YES;
OnlyAtBOL = YES;
CompletionPrefix = if1;
CycleList = (
c.block.if.singlestatement,
c.block.if,
c.block.ifelse,
);
TextString = "$(Statement)$(BlockSeparator)\n\t<#!statement!#>;\n";
},
{
Identifier = objc.method;
Name = "Method Definition";
IsMenuItem = NO;
BasedOn = objc;
TextString = "$(Declaration)$(BlockSeparator)\n{\n\t<#!statements!#>\n}";
IncludeContexts = ( "objc" );
},
{
Identifier = objc.method.void;
Name = "Method Definition - void no Parameters";
IsMenuItem = YES;
BasedOn = objc.method;
Declaration = "- (void)<#method name#>";
CycleList = (
objc.method.void,
objc.method.generic,
objc.method.nsstring,
);
},
{
Identifier = objc.method.generic;
Name = "Method Definition - Generic Method";
IsMenuItem = YES;
BasedOn = objc.method;
Declaration = "- (<#return type#>)<#method name#>:(<#parameter type 1#>)<#parameter name 1#>";
},
{
Identifier = objc.method.nsstring;
Name = "Method Definition - NSString Return Value";
IsMenuItem = YES;
BasedOn = objc.method;
CompletionPrefix = ms;
Declaration = "- (NSString *)<#method name#>";
},
{
Identifier = objc.method.parameter;
Name = "Method Parameter";
IsMenuItem = YES;
BasedOn = objc.method;
TextString = "<#description#>:(<#type#>)<#name#>";
},
)
Jump to Line
Something went wrong with that request. Please try again.