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

Re: masking events from Image Well


  • Subject: Re: masking events from Image Well
  • From: Henrietta Read <email@hidden>
  • Date: Tue, 5 May 2009 07:35:51 -0700

Sorry to bother, got it all fixed with:

[[self window] discardEventsMatchingMask:NSLeftMouseDraggedMask
                    beforeEvent:theEvent];



On Tue, May 5, 2009 at 6:09 AM, Henrietta Read <email@hidden>wrote:

> 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

References: 
 >masking events from Image Well (From: Henrietta Read <email@hidden>)

  • Prev by Date: KVC array proxy objects
  • Next by Date: NSTextView & Tabs ...
  • Previous by thread: masking events from Image Well
  • Next by thread: A tree data structure?
  • Index(es):
    • Date
    • Thread