what best proceed solve an objective-c namespace collision?
objective-c namespaces; it's many c, all within tellurian namespace. common use prefix classes initials, e.g. operative during ibm, prefix "ibm"; work microsoft, "ms"; on. infrequently initials ascribe project, e.g. adium prefixes classes "ai" (as there association behind take initials). apple prefixes classes ns says prefix indifferent apple only.
so distant well. nonetheless appending 2 4 letters category name front very, unequivocally unparalleled namespace. e.g. ms ai have an wholly opposite meanings (ai fake grasp example) developer competence endorse emanate an equally named class. bang, namespace collision.
okay, collision between your possess classes an outmost horizon using, simply change controlling your class, large deal. but twin outmost frameworks, both frameworks don't have source can't change? your concentration links both name conflicts. clarify these? best proceed work around such proceed still both classes?
in c work around fasten directly library, instead bucket library during runtime, controlling dlopen(), following representation looking controlling dlsym() distribute tellurian representation (that name any proceed like) following opening by tellurian symbol. e.g. have dispute since c library duty named open(), interpretation non-static named myopen have indicate open() duty library, so wish component open(), only open() wish one, opening around myopen identifier.
is something identical illusory objective-c not, there any clever, machiavellian fortitude solve namespace conflicts? any ideas?
update:
just explain this: answers advise prevaricate namespace collisions lay emanate improved namespace definitely welcome; however, i accept the answer given don't solve problem. i have twin libraries category names collide. i can't change them; i don't have source presumably one. collision already there tips have avoided lay won't assistance anymore. i disrespectful developers frameworks wish select improved namespace future, nonetheless being i'm poison fortitude work frameworks right within unparalleled application. any solutions possible?
Comments
Post a Comment