• 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
Re: Learning Cocoa: Dot View
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?


References: 
 >Learning Cocoa: Dot View (From: email@hidden)

  • Prev by Date: Re: WTF? How can this work?
  • Next by Date: Re: WTF? How can this work?
  • Previous by thread: Learning Cocoa: Dot View
  • Next by thread: libpcap in Cocoa
  • Index(es):
    • Date
    • Thread