Re: Bindings and MenuItems

2009-04-03 Thread Ben Lachman
On Apr 3, 2009, at 6:14 AM, Alexander Spohr wrote: Am 03.04.2009 um 06:49 schrieb Ben Lachman: No. That was what my original message outlined. Say you have a table view selected and hit cmd-p. NSView has a default implementation of print: so it will print the table view. In my case an

Re: Bindings and MenuItems

2009-04-03 Thread Alexander Spohr
Am 03.04.2009 um 06:49 schrieb Ben Lachman: No. That was what my original message outlined. Say you have a table view selected and hit cmd-p. NSView has a default implementation of print: so it will print the table view. In my case and in many others what you really want to print is th

Re: Bindings and MenuItems

2009-04-02 Thread Ben Lachman
No. That was what my original message outlined. Say you have a table view selected and hit cmd-p. NSView has a default implementation of print: so it will print the table view. In my case and in many others what you really want to print is the detail view or some representation of it th

Re: Bindings and MenuItems

2009-04-02 Thread Alexander Spohr
Am 02.04.2009 um 06:59 schrieb Ben Lachman: Yeah, I ended up reverting to just setting the target of the menu item in code when certain notifications happened (NSWindowDidBecomeKey and NSOutlineViewSelectionDidChange). This works, but isn't quite as simple as a bindings based solution sho

Re: Bindings and MenuItems

2009-04-01 Thread Ben Lachman
On Apr 1, 2009, at 5:01 PM, Keary Suska wrote: On Apr 1, 2009, at 12:31 PM, Ben Lachman wrote: I mean a "Cocoa bindings" kind of binding. e.g. the "target" binding of the menu item is bound in IB. The action field of the binding is set to "print:". I'm not talking about the traditional

Re: Bindings and MenuItems

2009-04-01 Thread Keary Suska
On Apr 1, 2009, at 12:31 PM, Ben Lachman wrote: I mean a "Cocoa bindings" kind of binding. e.g. the "target" binding of the menu item is bound in IB. The action field of the binding is set to "print:". I'm not talking about the traditional way of connecting a button/menu item to another

Re: Bindings and MenuItems

2009-04-01 Thread Ben Lachman
I mean a "Cocoa bindings" kind of binding. e.g. the "target" binding of the menu item is bound in IB. The action field of the binding is set to "print:". I'm not talking about the traditional way of connecting a button/menu item to another object through the basic control drag from sourc

Re: Bindings and MenuItems

2009-04-01 Thread Keary Suska
On Apr 1, 2009, at 3:34 AM, Ben Lachman wrote: I have a menu item that is bound to a target. The menu is resides in has "Auto Enables Items" checked which means that it should call - validateMenuItem on a items target if it is available. However validate is never called on the target. If

Re: Bindings and MenuItems

2009-04-01 Thread Andy Lee
On Apr 1, 2009, at 3:34 AM, Ben Lachman wrote: I have a menu item that is bound to a target. The menu is resides in has "Auto Enables Items" checked which means that it should call - validateMenuItem on a items target if it is available. However validate is never called on the target. If I