Framework class names need prefix
Reported by Scott Guelich | February 6th, 2009 @ 11:01 PM | in ObjectiveResource 1.1
It appears that the library classes have non-prefixed names like Connection and Response, which could easily collide with classes having the same name in the iPhone project that the framework is embedded within.
Since ObjC has no namespace support, the standard practice with frameworks is to use a common prefix for all classes. OR might be a good choice, in which case Connection -> ORConnection, Response -> ORResponse.
Comments and changes to this ticket
-
Joshua Vickery February 8th, 2009 @ 11:13 AM
Good point Scott! We should probably have taken care of this before announcing 1.0. Since we are building a number of different Objective* tools (ObjectiveRecord, ObjectiveSync) I was thinking about using the prefix "ORS" for ObjectiveResource. Would that work?
-
Joshua Vickery February 8th, 2009 @ 11:16 AM
- Milestone set to ObjectiveResource 1.01
-
Scott Guelich February 8th, 2009 @ 11:26 AM
Of course! Any prefix not used by Apple would work, and I don't know of anyone else using ORS.
-
Joshua Vickery February 10th, 2009 @ 04:20 PM
- Milestone changed from ObjectiveResource 1.01 to ObjectiveResource 1.1
-
jjenkins June 20th, 2009 @ 01:32 AM
+1 also...
the class "Connection" clashes with a private class in Apple's MessageUI framework in iPhone OS 3.0
We decided to drop the feature that would use MessageUI because we depend on ObjectiveResource too much at this point
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Port of Rails' ActiveResource framework to the iPhone.