Hey Scott and Conrad, I may be getting into some ... bad territory here, but what I am trying to achieve is the following...
First, the init method I posted belongs to CFAString. CFAString is an aggregate that contains a reference to an NSString (and other objects) and is also meant to mimic NSString but with a slightly simpler interface. It's part of a project I'm working on that is geared towards artists who have little experience programming. So, with the (id) I am trying to introduce a bit of redundancy. I have made a variety of other classes CFAImage, CFAShape, CFAMath, CFAColor, etc... which follow the same principles. At the moment I'm working on the CFAString class. Thanks for the advice. Even though I am interested in maintaining syntax similar to Obj-C, I'll look into changing method names, and the prefix as well. Cheers, T On 2011-01-29, at 5:43 PM, Conrad Shultz wrote: > That was my thought too. You mention that your CFAString is an NSObject > subclass but do not mention what your other class is. > > On a similar note, you might want to reconsider the name of CFAString. As you > are probably aware, Core Foundation classes are prefixed with CF, and there > is even a CFString class. > > "CFAString" seems, at best, likely to be hard to see visually or, at worst, > potentially conflict with a future public or private Core Foundation class. > > -- > Conrad Shultz > www.synthetiqsolutions.com > > On Jan 29, 2011, at 8:25, Scott Ribe <scott_r...@elevated-dev.com> wrote: > >> On Jan 29, 2011, at 8:29 AM, Travis Kirton wrote: >> >>> warning: incompatible Objective-C types 'struct CFAString *', expected >>> 'struct NSString *' when passing argument 1 of 'initWithString:' from >>> distinct Objective-C type >> >> The frameworks contain plenty of initWithString: (NSString*) declarations. >> You might want to use a name that is more specific. > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/travis%40postfl.com > > This email sent to tra...@postfl.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com