• 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
A pie analyzer
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A pie analyzer


  • Subject: A pie analyzer
  • From: "Tony S. Wu" <email@hidden>
  • Date: Sat, 19 Apr 2003 09:18:33 -0700

I am working on a "pie" analyzer, which takes number and present them in percentage with a pie graph.

http://homepage.mac.com/tonyswu/temp/c2.gif

I've got pretty much everything figured out, but I'd like to add a tooltip to each of the pie, so when users move the mouse over it'll show more info, like this:

http://homepage.mac.com/tonyswu/temp/c1.gif

My problem is, NSView only allows me to add tooltip for a rect.
I thought about using NSBezierPath's containsPoint method.
But I am not sure if it's a good idea since i'll be calling this method for average 5 to 8 times each time a user moves his mouse.
Can someone give me some ideas?
Thanks!

Tony S. Wu
email@hidden

"The world doesn't give us hope - it gives us chance."
http://homepage.mac.com/tonyswu/tonyswu - My web page.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: A pie analyzer
      • From: Scott Anguish <email@hidden>
    • Re: A pie analyzer
      • From: Calum Robinson <email@hidden>
    • Re: A pie analyzer
      • From: Shaun Wexler <email@hidden>
  • Prev by Date: NSTask from a foundation tool?
  • Next by Date: NSdata, buffer, NSData
  • Previous by thread: Re: NSTask from a foundation tool?
  • Next by thread: Re: A pie analyzer
  • Index(es):
    • Date
    • Thread