• 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
masking events from Image Well
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

masking events from Image Well


  • Subject: masking events from Image Well
  • From: Henrietta Read <email@hidden>
  • Date: Tue, 5 May 2009 06:09:32 -0700

Hi,

I'm using an Image Well as a button... such as:


- (void)mouseDown:(NSEvent *)theEvent
{
    theEvent = [[self window]
        nextEventMatchingMask: NSLeftMouseUpMask];
    switch([theEvent type])
    {
        case NSLeftMouseUp:

            DoVariousImportantThingsHere();

            [view setNeedsDisplay:YES];
            break;
        default: break;
    }
    return;
}


The only snag is if the mouse moves even a tiny bit,
the application window jumps suddenly when you
mouse up.

Should I be catching NSLeftMouseDraggedMask
or some such thing?
_______________________________________________

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: masking events from Image Well
      • From: Henrietta Read <email@hidden>
  • Prev by Date: Re: Trouble with property (copy) and retain counts
  • Next by Date: A tree data structure?
  • Previous by thread: WebView loses script context
  • Next by thread: Re: masking events from Image Well
  • Index(es):
    • Date
    • Thread