On 2/23/09, Jon C. Munson II <jmun...@his.com> wrote: > Kyle mentioned something about casting. While I know what certain casting > is, (int)i for example, I'm not sure what he meant. If he meant to include > the class header file and stipulate the class up front, etc., then I hadn't > done that as, again, the samples didn't cover that particular method for > this case - that was usually mentioned in the normal method, not the > convenience method being used here.
Well no, it wouldn't ... This is an aspect of the language with which you are expected to be familiar. It doesn't make sense that this information be repeated everywhere it could be used, right? This isn't even Objective-C; it's just a pointer: id obj = ...some class instance (MyClassyClass *)[obj doSomethingSpecificToMyClassyClass] Same as your int cast example. -- I.S. > _______________________________________________ > > 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/idiotsavant2005%40gmail.com > > This email sent to idiotsavant2...@gmail.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