accessing an Array Controller, Doc based app.
accessing an Array Controller, Doc based app.
- Subject: accessing an Array Controller, Doc based app.
- From: Raphael Sebbe <email@hidden>
- Date: Fri, 26 Mar 2004 12:49:34 +0100
Working on an document-based app, 2 nibs: document and inspector, the
latter being unique across the app.
The document has an array controller which controls some properties and
maintains the selection from the array.
I want my inspector to have access to that selection (document array
controller). I can do it by passing key path of the form
SharedApplication.currentDocument.propertyArrayController.selection.attr
ibuteOfProperty
currentDocument is an extension of mine, propertyArrayController is an
IBOutlet of document
The problem is that is cumbersome (long keypath) and I would like to
set up an NSObjectController in the inspector NIB to:
SharedApplication.currentDocument.propertyArrayController.selection
When I do that (a new NSObjectController), the value are not retrieved
anymore. Is it possible ? Or do you have other ideas ?
Thanks,
Raphael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.