views:

25

answers:

2

Hey guys,

I just noticed I get a lot of redondant code from one class to another in my project (like menus or buttons) ;)

Is there any way to optimize it ?

Thank you !

Gotye.

A: 

I am sure there is #include directive in Objective-C

Axarydax
A: 

Use classes for common code. Or refactor and base several classes on an abstract superclass. Or use regular C functions. Or use categories to add methods to library functions.

eman