• 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: view doesn't respond to very first mouse event
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: view doesn't respond to very first mouse event


  • Subject: Re: view doesn't respond to very first mouse event
  • From: Artemiy Pavlov <email@hidden>
  • Date: Sun, 28 Nov 2010 21:09:36 +0200

Fixed by adding this to @implementation:

- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent
{
	return YES;
}

:-)

On 28 Nov 2010, at 18:51, Artemiy Pavlov wrote:

Hi all!

I have an AudioUnit plugin with a Cocoa View. The view itself is a subclass of NSControl. It works well, however, it doesn't respond to the very first mouse down or mouse dragged event. This very first click or drag only makes the view active, only starting from the second click or drag that it starts to respond to these events.

How can I fix this? Would really appreciate any advise.

Thanks and best wishes,

Artemiy.

_______________________________________________

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

_______________________________________________

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: 
 >view doesn't respond to very first mouse event (From: Artemiy Pavlov <email@hidden>)

  • Prev by Date: Re: Codesign failure
  • Next by Date: Re: OutlineView with big text editor
  • Previous by thread: view doesn't respond to very first mouse event
  • Next by thread: hidden file
  • Index(es):
    • Date
    • Thread