• 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
Best approach: moving a pointer-like image over an NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Best approach: moving a pointer-like image over an NSImageView


  • Subject: Best approach: moving a pointer-like image over an NSImageView
  • From: Larry Gerndt <email@hidden>
  • Date: Thu, 9 Jun 2005 23:21:52 -0700

My application is an interactive collaboration tool wherein the attendees of a meeting are all looking at some image displayed in an NSImageView.  The attendees can turn on their pointer and point at things in the image, and everyone else can see their pointer.  Being new to Cocoa, I chose a very simple implementation for displaying a pointer:  I add a subview containing the pointer image to the NSImageView, and whenever the pointer is supposed to move, I hide, move, and then un-hide the subview.  Is this the approach a seasoned Cocoa programmer would take, or would it be more efficient (and nearly as simple) to draw in an overlay or something?  If the latter, could anyone direct me to a good example?  Thanks in advance.

Larry (loving Cocoa more everyday) Gerndt

--

Larry Gerndt

AIM Handle: SonOfTheSonOfMan

Let the truth be told though the heavens fall -- James Garrison


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: Manual KVO and will/didChangeValueForKey
  • Next by Date: Re: Multi-User using Core Data?
  • Previous by thread: Re: NSMenuItem icon with attributed text
  • Next by thread: Core Data and/or bindings: setting dynamic default values for properties?
  • Index(es):
    • Date
    • Thread