• 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: the first mouseDown message of NSWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: the first mouseDown message of NSWindow


  • Subject: Re: the first mouseDown message of NSWindow
  • From: Graham Cox <email@hidden>
  • Date: Thu, 15 Dec 2011 10:51:20 +1100

On 15/12/2011, at 9:13 AM, Torsten Curdt wrote:

> I have a custom window that where I receive mouseDown messages.


You probably don't want to do that. A custom window is OK if your window needs a custom appearance, but any meaningful content (and event handling) should be done by a view placed within, even with a custom window.

With your content and event handling in a view, it becomes a simple case of returning YES from the view's acceptsFirstMouse: method, as I previously indicated.


--Graham


_______________________________________________

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

References: 
 >the first mouseDown message of NSWindow (From: Torsten Curdt <email@hidden>)

  • Prev by Date: Determine sandbox/entitlements at runtime?
  • Next by Date: Re: the first mouseDown message of NSWindow
  • Previous by thread: Re: the first mouseDown message of NSWindow
  • Next by thread: Determine sandbox/entitlements at runtime?
  • Index(es):
    • Date
    • Thread