2 Replies Last post: Jan 10, 2014 4:21 PM by Maarten Hazewinkel  
Ignazio Calò Newbie 11 posts since
Jul 19, 2013
Currently Being Moderated

Jan 10, 2014 1:54 PM

Auto create methods

Is is possible with appcode auto-generate a new method when call it?

 

So when i write

[myobject mynewmethod]

 

i can create a new method like

 

-(void)mynewmethod {};

 

thanks

Alexander Kirillin JetBrains 156 posts since
Apr 5, 2011
Currently Being Moderated
Jan 10, 2014 4:19 PM in response to: Ignazio Calò
Re: Auto create methods

Yes, you can. You can fix most of errors/warnings in your code by pressing alt+enter.

Maarten Hazewinkel Novice 258 posts since
Feb 19, 2003
Currently Being Moderated
Jan 10, 2014 4:21 PM in response to: Ignazio Calò
Re: Auto create methods

Yes.

 

Type the method as you said, then with the caret somewhere in the method call, hit Alt-Enter and choose to create a method (or a property).

This will insert the method declaration in the header, and put an empty implementation in the implementation section.

More Like This

  • Retrieving data ...