What is the best common practice when develop the framework/SDK?

Hi All,


Please suggest me what is the best practise when create static library/framework/SDk,


To avoid conflicts (like duplicate symbol issue) when integrate into an any project in future.


Thanks,

Srini

If you're talking about Objective-C, where classes are globally scoped within your process, the correct approach is for you to add a prefix to the name of each class in your library.


Share and Enjoy

--

Quinn "The Eskimo!"

Apple Developer Relations, Developer Technical Support, Core OS/Hardware

I know I'm a bit late to the party, but look here: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/ProgrammingWithObjectiveC/Conventions/Conventions.html


Also, pay special attention to the part where Apple lays claim to all two-letter prefixes for their own use. Thus, you should always avoid two-letter prefixes because you never know when Apple will claim one that you use and then you have a naming conflict.


Since most classes also start with an uppercase letter, you just have to assume that the last upper-case character in the "prefix" is not part of the prefix, but is the first character of the class name, but that does not always work either (e.g., NSURL -- you have to know more context to understand what is the prefix and what is the class part).

What is the best common practice when develop the framework/SDK?
 
 
Q