Can XCode automatically stub out methods?

Joined
Dec 30, 2008
Messages
14
Reaction score
0
Points
1
If I type several method definitions in an Objective-C header file (.h) is there a way to get XCode to stub those methods out in a implementation file (.m)? I suppose I could just cut and paste, but surely it can do it on its own.
 

Del


Joined
Dec 24, 2006
Messages
901
Reaction score
15
Points
18
Location
N. Ireland
Your Mac's Specs
Mac Pro 2xQuad core 2.8GHZ
Anyone? I too would like a solution to this code completion
 
Joined
Mar 15, 2007
Messages
161
Reaction score
4
Points
18
Your Mac's Specs
17" MacBook Pro, 2.33GHz C2D, 2GB RAM
I don't believe there is anything built into Xcode to do this particular task. I agree with you that it would be a nice enhancement.

Perhaps a user script could be created to analyze the current file or selection, open the corresponding source file, and add stubs for any items that aren't found. But I doubt this would be a simple undertaking.
 
OP
M
Joined
Dec 30, 2008
Messages
14
Reaction score
0
Points
1
I think I am just spoiled by IntelliJ when doing Java development. It takes care of stuff like that for me (interface implementation, method overriding, live templates, file templates, etc).

Another nice one would be if it would provide empty implementations for delegate methods.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top