• 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: MouseUp in OutlineView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MouseUp in OutlineView


  • Subject: Re: MouseUp in OutlineView
  • From: glenn andreas <email@hidden>
  • Date: Tue, 3 Apr 2007 12:18:03 -0500


On Apr 3, 2007, at 12:05 PM, Nick Zitzmann wrote:


On Apr 3, 2007, at 10:58 AM, Stefan Heukamp wrote:

Is this a bug or should it work like this?

In most built-in NSView subclasses, the -mouseDown: method starts tracking events on its own, so -mouseUp: is never called. So it is not a bug.


If it should work like this is there any other possibility to get the mouseUp events?

You'd have to override -mouseDown: and rewrite most of its functionality yourself. Good luck.

Assuming you just need to do some sort of special processing at mouseUp time (which doesn't otherwise alter the behavior implicit in the mouseDown code), you could just do this:


- (void) mouseDown: (NSEvent *) theEvent
{
	[super mouseDown: theEvent];
	// insert custom code that you want to happen after mouse up here
}



Glenn Andreas email@hidden
<http://www.gandreas.com/> wicked fun!
quadrium2 | build, mutate, evolve, animate | images, textures, fractals, art



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: MouseUp in OutlineView
      • From: Stefan Heukamp <email@hidden>
References: 
 >MouseUp in OutlineView (From: Stefan Heukamp <email@hidden>)
 >Re: MouseUp in OutlineView (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: MouseUp in OutlineView
  • Next by Date: Re: MouseUp in OutlineView
  • Previous by thread: Re: MouseUp in OutlineView
  • Next by thread: Re: MouseUp in OutlineView
  • Index(es):
    • Date
    • Thread