Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added a define option to print commands to create a UIBezierPath to stdout #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ralfebert
Copy link

No description provided.

@ap4y
Copy link
Owner

ap4y commented Apr 3, 2013

Hi Ralf,

Thanks for the pull request. But I think Objective-C way to implement such type of logging is through forwardInvocation:. I made a gist as an example of possible implementation. With simple additions you can log any path operations.

Since proposed functionality implemented via forwardInvocation: will be generic to any UIBezierPath object, I think that this additions are beyond the scope of the project.

Cheers,
Arthur

@ralfebert
Copy link
Author

I went for the hard-coded-ifdef-approach because of the relative coordinates like "path.currentPoint.x + params[0]".

@ap4y
Copy link
Owner

ap4y commented Apr 3, 2013

Yes I understand that it could be tricky to handle all possible params, but in the end this class category simply invokes methods of the provided path instance according to the svg command. So it easier to hook to the instance method calls, since objective-c provides such functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants