views:

96

answers:

2

In objective-c/xcode, is there a way to write the definition of a method in the implementation and have automatically added to the header file?

A: 

Not that I know of. Often private methods are created in the implementation which you don't want to put in the header file, something which would be defeated if method signatures were automatically added to the header file.

Devin Ceartas
A: 

You could write a user script to do this. That would probably be about the closest thing to having it done automatically...

But as noted, you don't necessarily want every method you write to go in the header, so it's better to do it selectively.

Kendall Helmstetter Gelner