• 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: Turn off background click behavior on a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Turn off background click behavior on a window?


  • Subject: Re: Turn off background click behavior on a window?
  • From: Steve Mills <email@hidden>
  • Date: Wed, 29 Oct 2014 12:08:28 -0500

On Oct 29, 2014, at 11:24:49, Jonathan Mitchell <email@hidden> wrote:
>
> Does sound like overkill. I would put together a trivial test project and work back from there.

Same result. New Cocoa app project, subclassed NSView and handled acceptsFirstClick:, which returns NO, set the main window's content view to be that class, and added a button to the content view. Clicking the button while in the background works. I don't see how your test can possibly give you that result. You did have acceptsFirstClick: commented out, and it was returning YES. What happens if you uncomment it and return NO?

If I instead subclass NSButton, set the button's class to that, and return NO from its acceptsFirstClick:, THEN it works.

--
Steve Mills
Drummer, Mac geek


_______________________________________________

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: Turn off background click behavior on a window?
      • From: Jonathan Mitchell <email@hidden>
References: 
 >Turn off background click behavior on a window? (From: Steve Mills <email@hidden>)
 >Re: Turn off background click behavior on a window? (From: Jonathan Mitchell <email@hidden>)
 >Re: Turn off background click behavior on a window? (From: Steve Mills <email@hidden>)
 >Re: Turn off background click behavior on a window? (From: Jonathan Mitchell <email@hidden>)

  • Prev by Date: Re: Turn off background click behavior on a window?
  • Next by Date: Re: Turn off background click behavior on a window?
  • Previous by thread: Re: Turn off background click behavior on a window?
  • Next by thread: Re: Turn off background click behavior on a window?
  • Index(es):
    • Date
    • Thread