Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Aspect-Oriented Objective-C Library?

Tags:

Is there any Aspect-Oriented Objective-C library that I could perhaps use for iPhone development?

like image 601
luvieere Avatar asked Oct 02 '09 08:10

luvieere


1 Answers

There is an old project called AspectCocoa, this might be what you are searching for.

Otherwise Í would suggest rolling your own. Either proxy based AOP by subclassing NSProxy for a change. Or you could do some method swizzling with the quite cool Obj-C run-time function method_exchangeImplementations().

But unless you are looking for a fun exercise, ask yourself what you want to achieve, and if there is an existing perfectly working Objective-C way to do it.

like image 185
PeyloW Avatar answered Oct 04 '22 16:10

PeyloW