19:13:36 -0600
> From: William Squires
> Subject: Dumb question about Core Data
> To: cocoa-dev@lists.apple.com
> Message-ID: <67ea316e-47cc-44da-bf41-c1ebac1a9...@satx.rr.com>
> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed
>
> Let's say I have
If you create your data model in Xcode with its data modeling facility, you can
give it a default value right there, when you select the attribute (no need to
recreate the Player.m and Player.h files). If you need to set different default
values each time, just create the Player instance and set
On Feb 4, 2010, at 5:13 PM, William Squires wrote:
> Let's say I have an entity, "Player" that has some attributes (Name, Level,
> XP, FightStr, DefenseStr, etc...) for a role-playing game. How do I
> pre-initialize an entity with known values, when their properties are
> @dynamic? I need for
Let's say I have an entity, "Player" that has some attributes (Name,
Level, XP, FightStr, DefenseStr, etc...) for a role-playing game. How
do I pre-initialize an entity with known values, when their
properties are @dynamic? I need for a "blank" player to start out on
level 1 with 0 XP, 0 Fi