Re: Populating a new SQLite Core Data store with default data
Re: Populating a new SQLite Core Data store with default data
- Subject: Re: Populating a new SQLite Core Data store with default data
- From: "I. Savant" <email@hidden>
- Date: Mon, 23 Feb 2009 14:28:49 -0500
On 2/23/09, Jon C. Munson II <email@hidden> 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 (email@hidden)
>
> 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:
>
> This email sent to email@hidden
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden