Re: MainMenu.nib - MyDocument.nib bindings question...
Re: MainMenu.nib - MyDocument.nib bindings question...
- Subject: Re: MainMenu.nib - MyDocument.nib bindings question...
- From: Keary Suska <email@hidden>
- Date: Wed, 23 Aug 2006 18:21:41 -0600
- Thread-topic: MainMenu.nib - MyDocument.nib bindings question...
on 8/23/06 3:35 PM, email@hidden purportedly said:
> I have a NSPanel that is a triggered from a MenuItem in my
> MainMenu.nib and I would like the panel to display information about
> the currently selected row in the NSTableView. I would like to bind
> the fields in my NSPanel to the NSArrayController that I am using for
> my TableView. Can anyone point me at a good tutorial, or example of
> how to make this work using bindings? It seems like a simple thing
> to do, but I haven't been able to find a good example of how to make
> this happen.
What you want is probably more difficult than you want. You would be better
off moving the panel and menu action to the document nib (probably as a
method in your document object). Makes more sense anyway, since it is
related functionality.
The question then, may be, how to have the menu in the main nib call an
action in the document nib. The answer is nil-targeted actions. Add your
action to FirstResponder and voila.
Best,
Keary Suska
Esoteritech, Inc.
"Demystifying technology for your home or business"
_______________________________________________
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