• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Bindings and MenuItems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Bindings and MenuItems
      • From: Alexander Spohr <email@hidden>
References: 
 >Bindings and MenuItems (From: Ben Lachman <email@hidden>)
 >Re: Bindings and MenuItems (From: Andy Lee <email@hidden>)
 >Re: Bindings and MenuItems (From: Ben Lachman <email@hidden>)
 >Re: Bindings and MenuItems (From: Keary Suska <email@hidden>)
 >Re: Bindings and MenuItems (From: Ben Lachman <email@hidden>)
 >Re: Bindings and MenuItems (From: Alexander Spohr <email@hidden>)

  • Prev by Date: Re: isnan
  • Next by Date: Re: Toll-free bridge type at runtime
  • Previous by thread: Re: Bindings and MenuItems
  • Next by thread: Re: Bindings and MenuItems
  • Index(es):
    • Date
    • Thread