• 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 and Views
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Core Data and Views


  • Subject: Core Data and Views
  • From: Matt Mashyna <email@hidden>
  • Date: Thu, 5 Apr 2007 00:16:07 -0400

I'm trying to understand how I can use core data for a simple app but I can't find an example and I can't find it searching the developer pages. I want to build a simple vector graphics app. I want to have rectangles, circles and triangles represented by core data entities. I can see from examples how to create new entities and put them in a NSTableView using an NSArrayController. What I can't seem to find is how I would go about using other objects for views.

If I have an entity with the attributes x,y and shape how can I use it to draw a view with those attributes ? Can I bind the entity to an NSView ? If my view can be dragged how would I tell the entity that it's associated with it that the attributes had changed ? When I open a document how will it know to create views associated with the entities ?

Sorry for the newbie questions. I feel like I haven't been looking in the right place.
_______________________________________________


Cocoa-dev mailing list (email@hidden)

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 and Views
      • From: "I. Savant" <email@hidden>
    • Re: Core Data and Views
      • From: mmalc crawford <email@hidden>
  • Prev by Date: Re: Core Data Relationships
  • Next by Date: Re: Core Data and Views
  • Previous by thread: Re: Core Data Relationships
  • Next by thread: Re: Core Data and Views
  • Index(es):
    • Date
    • Thread