Re: Selected Entity
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