• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
core data - beyond the simple example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

core data - beyond the simple example


  • Subject: core data - beyond the simple example
  • From: Torsten Curdt <email@hidden>
  • Date: Fri, 4 Apr 2008 16:42:55 +0200

Hey guys

I am currently trying to get my head around core data. First impression - quite impressive.

I've followed some tutorials to get started but somehow I am a bit lost when I want to do some more complex things. This might actually be more because of bindings than because of core data. Or maybe I just did not look at the right place. Maybe you guys can give me some hints links and so on.

I have got a little demo project. I have a NSTableView bound to a Core Data array of objects that where I can edit the name. So that was the first easy step. Here are a few more:

1.) What I want to do next is show all attributes of the object in my NSTableView. Right now I assume I need to subclass the NSTableCell and somehow make the NSTableView use that class instead. Then I will need to bind the individual attributes to the controls in that view. Is that the correct way to do it?

2.) Instead of binding ALL the objects to the NSTableView I would like to filter the objects so only objects e.g. with attributes "color='red'" get shown.

3.) Now I would like be able to make this filter more dynamic. For example adding 3 buttons. "show red", "show green", "show all".

4.) Next thing would be to have this filter somehow defined dynamically. Having the user assigning the condition "color='red'" to the "show red" button and so on.

I was also wondering ...what if we are talking about 1M objects (or rows thinking of it in terms of a database). How does this scale?

Also I am wondering about migrations. When you change the data model and users upgrade the application. How can one define the migrations?

cheers
--
Torsten




_______________________________________________

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


  • Follow-Ups:
    • Re: core data - beyond the simple example
      • From: "I. Savant" <email@hidden>
  • Prev by Date: Re: NSPopupButton Cell in NSTableView
  • Next by Date: NSDate and millis
  • Previous by thread: Job- Software Development Engineer Needed
  • Next by thread: Re: core data - beyond the simple example
  • Index(es):
    • Date
    • Thread