Re: Learning Cocoa: Dot View
Re: Learning Cocoa: Dot View
- Subject: Re: Learning Cocoa: Dot View
- From: Carlos Weber <email@hidden>
- Date: Sun, 19 Aug 2001 10:10:02 -1000
On Sunday, August 19, 2001, at 09:12 , email@hidden wrote:
I don't recall seeing this posted before. Sorry if it's repeat.
As specified in the text of Learning Cocoa, Dot View doesn't work
properly. The variables "radius" and "color" need to be declared
globally.
Works fine for me. "radius" and "color" are instance variables of the
DotView class, so they are accessible to all methods of the class and
its subclasses (since the default scope of instance variables is
@protected). Did you perhaps forget to #import DotView.h in your
implementation file?