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
Linking arrayController selections across Nibs
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
][
Date Index
][
Thread Index
]
Linking arrayController selections across Nibs
Subject
:
Linking arrayController selections across Nibs
From: Mark Friedman <
email@hidden
>
Date: Tue, 4 Oct 2005 21:44:05 -0400
I'm working on a project that is similar to mmalc's GraphicsBindings example except for two main differences. First I'm using a Core Data setup in which a managed object called "course" is equivalent to the GraphicsBindings' "graphics" array. Second, the view of the graphical objects (~circles) is in one window and the table view inspector of the same entities is in a different window. So the CourseDocument.m (NSPersistentDocument) uses makeWindowControllers to make the two window controllers, each is owned by a (different) subclass of NSWindowController. Two Nib files, each has an object controller whose contentObject is bound to the managed object "course" (along with the managedObjectcontent). Each Nib also has an array controller whose contentSet is bound to its object controller's selection.obstacle (obstacle ~= circle) (along with the managedObjectcontent).
Obstacles can be added to the course from either window and they will show up in both very nicely. What I'm stuck on is linking the selections of the two array controllers so that selecting an obstacle in either window is indicated in both. I have replicated the "selectionIndexesContainer" code from GraphicsBindings in the graphical window's controller class and can double-click on an obstacle and see the selectionIndexes of that array controller change. But nothing happens in the other window's tableView. What do I need to do to make that happen?
I hope I've given enough info for an answer. Please be gentle with the explanation, I kind of new to all this.
Thanks,
Mark
_______________________________________________
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
Prev by Date:
Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
Next by Date:
Re: Reading data from the pipe in AuthorizationExecuteWithPrivileges() ??
Previous by thread:
NSTableColumn - get the sort descriptor created by "Creates Sort Descriptor" binding option?
Next by thread:
Coredata "found fault"
Index(es):
Date
Thread