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

Category methods should be prefixed #5

Open
PeteC opened this issue Dec 6, 2013 · 1 comment
Open

Category methods should be prefixed #5

PeteC opened this issue Dec 6, 2013 · 1 comment

Comments

@PeteC
Copy link

PeteC commented Dec 6, 2013

Category methods should be prefixed so they don't clash with other libraries or with methods that may be added by Apple in the future. This is especially important for methods that are likely to be implemented elsewhere such as "fontName".

Also see:
https://developer.apple.com/library/ios/documentation/cocoa/conceptual/ProgrammingWithObjectiveC/CustomizingExistingClasses/CustomizingExistingClasses.html

@jamztang
Copy link
Member

jamztang commented Dec 7, 2013

Yes I agreed. We should probably add a prefix as you suggested, or implement a "canvas" object property for all kinds of configurations. We'd need some thoughts on that and improve that on next version.

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

No branches or pull requests

2 participants