Re: CoreData - inspector view?
Re: CoreData - inspector view?
- Subject: Re: CoreData - inspector view?
- From: Scott Anguish <email@hidden>
- Date: Wed, 6 Jul 2005 04:27:48 -0400
you want to bind the text view in the inspector to your controller in
your document but you do this through the NSApplication instance,
using the keypath
mainWindow.windowController.document.yourcontroller
this will get you the current document based on the front window...
and if your document knows the controller, you're set.
BTW, this is a common question, it's somewhat covered in an upcoming
documentation update. It was also answered on the list on June 25th
with a subject "Making Inspectors"
On Jul 6, 2005, at 1:48 AM, Alan Dail wrote:
When creating my data model, I created a BaseObject class that
simply has a note field. I'd like to allow notes to be attached to
any object. Rather than clutter up all of my windows with a note
field, I'd like to have a note inspector view that lets you view/
set the appropriate note for the selected object in the frontmost
window, if there is one. Is there a way to set up something like
this in interface builder? I have no trouble binding a note field
to the selection of a given NSArrayController, but I don't see a
way to have it dynamically change based on the active window.
_______________________________________________
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