• 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
Re: Getting data from NSOutlineView [solved, kind of...]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting data from NSOutlineView [solved, kind of...]


  • Subject: Re: Getting data from NSOutlineView [solved, kind of...]
  • From: Wain <email@hidden>
  • Date: Thu, 15 Dec 2005 18:19:41 +0000

Hi,

Have you considered using fetch requests and predicates to get and filter the data you want from the persistent store?

http://developer.apple.com/documentation/Cocoa/Reference/ CoreData_ObjC/Classes/NSFetchRequest.html

http://developer.apple.com/documentation/Cocoa/Conceptual/Predicates/ index.html#//apple_ref/doc/uid/TP40001789

Your on the right line using a controller to interrogate the data store and update your view.

Wain

On 15 Dec 2005, at 13:33, goessly wrote:

Is it possible that there is no way to access the actual data managed by Core Data, except within the limited possibilities provided by bindings? After checking several related topics I'm a at a complete loss here.

I have set up a core data doc based app. I can create custom data sets, no problem. I've got a sceneGraph-View which is supposed to render a graphical representation of those items. Therefor I need to access the properties of the data sets, which are defined based on a xcdatamodel. Their instances are displayed in an NSOutlineView, managed by a NSTreecontroller; connected using bindings. Any design flaws so far, or would you consider this a valid approach?

Now why is it so hard to access this content from another class, i.e. my sceneGraph-Controller?
I've tried three different approaches to create such in interface: via NSTreeController, via NSOutlineView, and by the implementations of the modeled entity. Accessing it by reading directly from the Document came to mind, but I had no idea how to do that.
Frustrating, since the task seems so easy: get the following properties from all currently present instances of my entity.

Am I missing something? Any further readings, suggestions, comments?

Best regards,
goessly


___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
References: 
 >Getting data from NSOutlineView (From: goessly <email@hidden>)
 >Re: Getting data from NSOutlineView (From: goessly <email@hidden>)
 >Re: Getting data from NSOutlineView (From: Alex Fischer <email@hidden>)
 >Re: Getting data from NSOutlineView (From: goessly <email@hidden>)
 >Re: Getting data from NSOutlineView [solved, kind of...] (From: goessly <email@hidden>)
 >Re: Getting data from NSOutlineView [solved, kind of...] (From: Corbin Dunn <email@hidden>)
 >Re: Getting data from NSOutlineView [solved, kind of...] (From: goessly <email@hidden>)

  • Prev by Date: Newbie multiple controller design question
  • Next by Date: Path to Metadata attributes
  • Previous by thread: Re: Getting data from NSOutlineView [solved, kind of...]
  • Next by thread: Re: Getting data from NSOutlineView [solved, kind of...]
  • Index(es):
    • Date
    • Thread