Re: NSController, currentDocument
Re: NSController, currentDocument
- Subject: Re: NSController, currentDocument
- From: Jim Balhoff <email@hidden>
- Date: Fri, 7 Nov 2003 17:27:37 -0500
On Nov 5, 2003, at 12:17 PM, Marco Binder wrote:
I ve done it like this: connected the UI items of the palette to the
shared application ("File4s Owner") and simply specified the following
keypath: mainWindow.document.whateverPropertyYouDesire
Worked for me (have tried it only briefly).
Hi,
I was wondering how I should know that one can use the key "document"
on the mainWindow? NSWindow doesn't have a -document method as far I
can tell, so I've been using "mainWindow.delegate". However, I didn't
like this, since I might change the delegate for this window sometime.
Your method is now working well for me, but for my own education I'd
like to know the details.
Thanks,
Jim
_______________________________________________
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.