• 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
Inputting data to a drawRect function
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Inputting data to a drawRect function


  • Subject: Inputting data to a drawRect function
  • From: Chad Armstrong <email@hidden>
  • Date: Fri, 22 Mar 2002 01:57:00 -0700

Hopefully if I restructure my question, someone might be able to help me with my problem.

I'm trying to draw to a customized NSView, and if I declare the variables (points, view boundary, etc.) inside the drawRect, the drawing works fine. However, I need to receive input from the user to format how the information is displayed on the view. When I tried to reference data that was inside the MyView class (which contains the drawRect method), the drawing would not work correctly. It will still only draw the items which are referenced locally inside the drawRect function. This is completely useless if I can't modify data and have the drawRect function process it correctly. Do I need to make some connection inside Interface Builder, or change the code in my MyView class?

Chad Armstrong
email@hidden
_______________________________________________
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.

  • Prev by Date: Toggling arrow
  • Next by Date: Re: How to send message between thread?
  • Previous by thread: Toggling arrow
  • Next by thread: looking for a developer
  • Index(es):
    • Date
    • Thread