Re: NSController, currentDocument
Re: NSController, currentDocument
- Subject: Re: NSController, currentDocument
- From: Scott Anguish <email@hidden>
- Date: Tue, 4 Nov 2003 18:23:48 -0500
On Nov 4, 2003, at 10:34 AM, Raphael Sebbe wrote:
Hi there.
Currently playing with NSController...
I want to access attributes from the current document in a "global"
(one common to all documents, that reflects the values of the current
document) info panel, on a NIB by itself. Do I have to connect the
NSController associated through code or is there a "more
user-friendly" way of accomplishing that ?
I've not tried this yet (it's on the list, but it's a long list).
You'd need to create an NSObjectController with the
sharedDocumentController's currentDocument as source and then bind to
that. The shared Application object is likely the easiest place to do
this (add a method there that returns the current document).
_______________________________________________
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.