I need to redefine one method in CGGeometry.h file (in CoreGraphics framework). You cannot do it by using Category or extension cuz it is not Objective-C class.. You will have an error.
I'm trying to redefine this function in CGGeometry.h
CG_INLINE CGRect
CGRectMake(CGFloat x, CGFloat y, CGFloat width, CGFloat height)
{
CGRect rect;
rect.origin.x = x; rect.origin.y = y;
rect.size.width = width; rect.size.height = height;
NSLog(@"bla bla bla");
return rect;
}
It should call my new Extended function in all over the scope of the whole project...
I can change the original source code of the CoreGraphics, but it will be related to all other projects.. I don't wont to do it that way... I'm looking for more elegant solution.
Thank you.