• 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: Getting select click
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting select click


  • Subject: Re: Getting select click
  • From: Ryan Dingman <email@hidden>
  • Date: Tue, 12 Jun 2001 19:13:48 -0700

Yes, in your view you can override

- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent;

This method controls whether the initial mouse event simply activates the window(return NO) or if it the view actually attempts to respond to the initial mouse event(return YES). If you want to always have initial mouse events do more than just activate the window then you should return YES.

Hope this helps.

ryan

--
Ryan Dingman
FrontBase
email@hidden

On Tuesday, June 12, 2001, at 04:40 PM, Steve Gehrman wrote:

On thing I find most annoying with most MacOSX apps is having to click on an apps window first to select it, and then click again to actually click in the windows contents. I noticed that some apps on some controls respond to the select click, while others do not.

Is there a way to set your views to always get select clicks?

steve
_______________________________________________
cocoa-dev mailing list
email@hidden
http://www.lists.apple.com/mailman/listinfo/cocoa-dev


References: 
 >Getting select click (From: Steve Gehrman <email@hidden>)

  • Prev by Date: Re: Checkboxes and NSBox titles
  • Next by Date: Re: Cocoa/EOF for non-enterprise apps Re: proof of cocoa superiority?
  • Previous by thread: Re: Getting select click
  • Next by thread: Another NSOutlineView Bug
  • Index(es):
    • Date
    • Thread