A question about core data.

2012-04-12 Thread Michael Parchet
Hello, I have started a billing project with coco and core data. In my project, I have a form that the user must fill to add a customer (for example) but it seems that core data have only an array controller with a manage object context to manage the core data database. Is it true ? In some

Re: A question about core data.

2012-04-12 Thread Mike Abdullah
Whoah, back up. It sounds like you've dived in over your depth. No, you don't have to use an array controller; you are free to modify the context as you wish. Using one of Cocoa's built-in controllers might well prove better for your task, it's hard to say. Fetch requests are what they say on

Re: A question about core data.

2012-04-12 Thread Felix Franz
Hello Michael, On 11.04.2012, at 00:18, Michael Parchet wrote: Hello, I have started a billing project with coco and core data. In my project, I have a form that the user must fill to add a customer (for example) but it seems that core data have only an array controller with a manage

Re: A question about core data.

2012-04-12 Thread Michael Swan
. On 12 Apr, 2012, at 2:23 AM, cocoa-dev-requ...@lists.apple.com wrote: Message: 12 Date: Wed, 11 Apr 2012 00:18:12 +0200 From: Michael Parchet mparc...@sunrise.ch To: Cocoa-dev@lists.apple.com Subject: A question about core data. Message-ID: 4f84b1a4.7020...@sunrise.ch Content-Type: text

Dumb question about Core Data

2010-02-04 Thread William Squires
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

Re: Dumb question about Core Data

2010-02-04 Thread Dave Carrigan
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 a

Re: Dumb question about Core Data

2010-02-04 Thread Hank Heijink (Mailinglists)
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

Re: Dumb question about Core Data

2010-02-04 Thread John Bishop
: 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 an entity, Player that has some attributes (Name, Level, XP, FightStr, DefenseStr