• 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: "I. Savant" <email@hidden>
  • Date: Thu, 25 May 2006 11:19:55 -0400

Charles:

This is Cocoa basics, I'm afraid. You should go back over the Cocoa introductory documentation.

  You need an IBOutlet in your document's header file:

IBOutlet NSArrayController * myArrayController;

Connect the array controller (in IB) to this outlet and now you have a way of talking to the array controller from within your source code. You really need to master the basics before tackling technologies like Cocoa Bindings and Core Data.

--
I.S.


On May 25, 2006, at 11:15 AM, Charles Ross wrote:

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:
40gmail.com


This email sent to email@hidden

_______________________________________________ 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: 
 >Selected Entity (From: Charles Ross <email@hidden>)
 >Re: Selected Entity (From: George Orthwein <email@hidden>)
 >Re: Selected Entity (From: Charles Ross <email@hidden>)

  • Prev by Date: Re: Selected Entity
  • Next by Date: Re: beginSheet
  • Previous by thread: Re: Selected Entity
  • Next by thread: NSTokenField token selected event
  • Index(es):
    • Date
    • Thread