• 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: Selected Entity
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selected Entity


  • Subject: Re: Selected Entity
  • From: Charles Ross <email@hidden>
  • Date: Thu, 25 May 2006 08:15:05 -0700

OK, but how do I get the NSArrayController? I'm in the source code for MyDocument, which is a subclass of NSPersistentDocument, which has a method for returning the associated NSManagedObjectContext (am I correct in that?). The NSArrayController is bound to the NSManagedObjectContext, so is there a way to get it? Then I can use the selection method, but I have to get it first, right? Or am I missing something.

Thanks,
Chuck

On May 25, 2006, at 7:00 AM, George Orthwein wrote:


The model (Core Data) doesn't manage the selection, you'll want to look at the NSArrayController and selectedObjects.

http://developer.apple.com/documentation/Cocoa/Conceptual/ CocoaBindings/Concepts/CntrlSelection.html

George
_______________________________________________
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


  • Follow-Ups:
    • Re: Selected Entity
      • From: "I. Savant" <email@hidden>
References: 
 >Selected Entity (From: Charles Ross <email@hidden>)
 >Re: Selected Entity (From: George Orthwein <email@hidden>)

  • Prev by Date: Customizing the preview in the file browser dialog
  • Next by Date: Re: Selected Entity
  • Previous by thread: Re: Selected Entity
  • Next by thread: Re: Selected Entity
  • Index(es):
    • Date
    • Thread