Inputting data to a drawRect function
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.