• 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
Beginner Question About CustomView, -drawRect: and Plotting Data.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Beginner Question About CustomView, -drawRect: and Plotting Data.


  • Subject: Beginner Question About CustomView, -drawRect: and Plotting Data.
  • From: Daniel J Farrell <email@hidden>
  • Date: Tue, 27 Jun 2006 11:10:35 +0100

Hi folks,

I have a CustomView that does some NSBezierPath drawing from an array of data point that I pass it: I'm plotting some scientific data.

At the moment the only way I can get a custom view to draw is my placing the data inside the -drawRect: method. So my question is: How can I make a method that will plot my data on the custom view every time I call the method e.g. something like -drawRect:WithXData:YData: ?

Regards,

Daniel.

PS - Rather than clogging this post up with code I'd thought I'd leave it out but can post if you need to see it.


_______________________________________________ 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
  • Follow-Ups:
    • Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
      • From: "Shawn Erickson" <email@hidden>
    • Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
      • From: "Michael Ash" <email@hidden>
  • Prev by Date: Re: shouldSelectTabViewItem called twice
  • Next by Date: Setting Application Main menu in code
  • Previous by thread: Re: shouldSelectTabViewItem called twice
  • Next by thread: Re: Beginner Question About CustomView, -drawRect: and Plotting Data.
  • Index(es):
    • Date
    • Thread