• 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: Need the Why and How of mouseDragged:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need the Why and How of mouseDragged:


  • Subject: Re: Need the Why and How of mouseDragged:
  • From: Alastair Houghton <email@hidden>
  • Date: Thu, 13 Dec 2007 19:09:13 +0000

On 13 Dec 2007, at 18:21, Jerry Krinock <email@hidden> wrote:

Thanks again, Alastair. I sure don't have the code for the superview. In my second instance, the superview is NSView, the content view of an NSWindow.

[snip]

To get mouseDragged:, I must either setEnabled:NO or ^not^ invoke super in mouseDown:.

How could setEnabled:YES cause me to not get mouseDragged: ?

If your superclass is NSView, you don't need to forward the message to super.


As for the -setEnabled: thing, the default behaviour is probably to track the mouse until mouse up, but only if -enabled is YES. I can't say I've noticed this before myself, because I don't tend to forward - mouseDown: to super where super is a plain NSView.

Kind regards,

Alastair

--
http://alastairs-place.net

_______________________________________________

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: Need the Why and How of mouseDragged:
      • From: Jerry Krinock <email@hidden>
References: 
 >Need the Why and How of mouseDragged: (From: Jerry Krinock <email@hidden>)
 >Re: Need the Why and How of mouseDragged: (From: Alastair Houghton <email@hidden>)
 >Re: Need the Why and How of mouseDragged: (From: "Adam R. Maxwell" <email@hidden>)
 >Re: Need the Why and How of mouseDragged: (From: Jerry Krinock <email@hidden>)
 >Re: Need the Why and How of mouseDragged: (From: Alastair Houghton <email@hidden>)
 >Re: Need the Why and How of mouseDragged: (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Re: Need the Why and How of mouseDragged:
  • Next by Date: Re: How to read raw system disk
  • Previous by thread: Re: Need the Why and How of mouseDragged:
  • Next by thread: Re: Need the Why and How of mouseDragged:
  • Index(es):
    • Date
    • Thread