Re: Bindings and MenuItems
Re: Bindings and MenuItems
- Subject: Re: Bindings and MenuItems
- From: Ben Lachman <email@hidden>
- Date: Fri, 03 Apr 2009 00:49:37 -0400
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 that actually shows the currently data of the
selected object(s). So no that's not really what the first responder
is for.
->Ben
--
Ben Lachman
Acacia Tree Software
http://acaciatreesoftware.com
email: email@hidden
twitter: @benlachman
mobile: 740.590.0009
On Apr 2, 2009, at 4:49 AM, Alexander Spohr wrote:
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
should have been. Planning to file a bug on this.
Can’t you use the first responder? That’s what it’s for.
atze
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden