• 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
NSImageView mouseUp problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSImageView mouseUp problem?


  • Subject: NSImageView mouseUp problem?
  • From: Alexander Zvyagin <email@hidden>
  • Date: Sat, 05 Mar 2011 20:48:02 +0300
  • Acceptlanguage: en-US, ru-RU
  • Thread-topic: NSImageView mouseUp problem?

Hi, All!


I has a custom view must show the mouseEntered state and mousePressed state in different pictures.
If mouse press is inside this view but mouse release is outside, my view doesn't receive -mouseUp event:


--- cut ---
>>> press is really there <<<
// [-mouseDown] { 360 x 126} NSImageView
// [-mouseDown] { 361 x 195} NSImageView
// [-mouseDown] {  52 x  55} MyCustomView
>>> release is really there <<<
// [-mouseUp] { 260 x 117} NSImageView
// [-mouseUp] { 261 x 186} NSImageView
// !!! no -mouseUp event for MyCustomView there
--- cut ---



This was a log from:



@implementation NSControl( mouseEvents )

-( void )mouseDown:( NSEvent* )theEvent
{
NSPoint thePoint = [self convertPoint:[theEvent locationInWindow] fromView:[self superview]];
NSLog( @"[-mouseDown] {%4g x%4g} %@", thePoint.x, thePoint.y, [self className] );
[super mouseDown:theEvent];
}

-( void )mouseUp:( NSEvent* )theEvent
{
NSPoint thePoint = [self convertPoint:[theEvent locationInWindow] fromView:[self superview]];
NSLog( @"[-mouseUp] {%4g x%4g} %@", thePoint.x, thePoint.y, [self className] );
[super mouseUp:theEvent];
}

@end


What can I do to receive this -mouseUp event ?
Or did NSImageView doesn't resend -mouseUp to over responders?


Alex.

_______________________________________________

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

  • Prev by Date: Re: Accepting current edited text field contents
  • Next by Date: Re: Accepting current edited text field contents
  • Previous by thread: Re: binding relationship to checkbox
  • Next by thread: Re: NSImageView mouseUp problem?
  • Index(es):
    • Date
    • Thread