• 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 17:47:17 +0000

On 13 Dec 2007, at 17:37, Jerry Krinock wrote:

Thanks to Alastair and to Adam for the code. But I now have seen exactly the same behavior in another instance of this same custom control(*), which is not in an RBSplitView. So it looks like RBSplitView is not my problem, at least not yet.

No, sorry. I seem to be having trouble reading things properly today. I thought you'd subclassed RBSplitView, but you're using a subview.


The problem is the superclass of your view (which I assumed was RBSplitView, but of course it isn't), which is doing what I said (i.e. it has a mouse tracking loop that runs when you send -mouseDown:).

The solution is to do one of the following:

1. Add some hooks to the mouse tracking loop in the superview's code, or

2. Copy the superview's code for -mouseDown: into the subview and customize it appropriately, or

3. Change the superview to use three-method tracking.

If you don't have the code for the superview, and it doesn't have sufficient hooks, it's a bit of a nuisance but you can often re- implement the mouse tracking in the subview (depending on what it does).

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>)

  • Prev by Date: Re: Need the Why and How of mouseDragged:
  • Next by Date: 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