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

Obj-C framework defines categories on NSDate and NSString without prefixes #1

Closed
andymatuschak opened this issue May 10, 2012 · 2 comments

Comments

@andymatuschak
Copy link

See NSString+Simperium.h and NSDate+Simperium.h. It is not safe to define methods like +[NSString makeUUID] because you may collide with an identically-named method defined in another framework linked by your client—or worse, in a future version of a system framework.

You must prefix all category methods you define: for instance, +[NSString sp_makeUUID].

@mikejohnstn
Copy link
Contributor

We'll update this, thanks.

@mikejohnstn
Copy link
Contributor

Fixed in f1f4727

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