• 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
mouseMoved messages (modifying DotView)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mouseMoved messages (modifying DotView)


  • Subject: mouseMoved messages (modifying DotView)
  • From: Graeme Phillipson <email@hidden>
  • Date: Tue, 6 Nov 2001 14:14:34 +0000

Hello,
I'm learning cocoa, just did the Dot View tutorial. As an experiment to see if I understand the event system I'm trying to see if I can modify it to set the dot position whenever the mouse moves and not just on a click.
The way I have done this is:
1) change the mouseDown method to mouseMoved
2) added [[self window]setAcceptsMouseMovedEvents:YES]; to initWithFrame
3) added a method acceptsFirstResponder which returns YES
4) connected the initailFirstRespond of the window object to the DotView object in IB.
But it doesn't work! Could anyone point out what it is that I have done wrong /not done?

Thanks,
Graeme Phillipson.


  • Prev by Date: Re: AppleDouble format
  • Next by Date: Newbie, Q about files
  • Previous by thread: Re: Info window scenario
  • Next by thread: Re: mouseMoved messages (modifying DotView)
  • Index(es):
    • Date
    • Thread