• 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
Example DotView from Learning Cocoa.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Example DotView from Learning Cocoa.


  • Subject: Example DotView from Learning Cocoa.
  • From: Lamar Williams <email@hidden>
  • Date: Fri, 14 Sep 2001 17:57:56 -0700

Hello,

Can someone tell me why the address of "self" is different in different functions in the DotView class? A printout of the value of self from diffrent functions is shown below.

-------------------------------------------------------------------------------------
Sep 14 17:53:23 Dot View[1027] initWithFram self = 0x18d2020
Sep 14 17:53:23 Dot View[1027] initWithFram self = 0x18d4860
Sep 14 17:53:23 Dot View[1027] awakeFromNib self = 0x18d2020
Sep 14 17:53:23 Dot View[1027] awakeFromNib self = 0x18d4860
Sep 14 17:53:23 Dot View[1027] isOpaque self = 0x18d2020
Sep 14 17:53:23 Dot View[1027] isOpaque self = 0x18d2020
Sep 14 17:53:23 Dot View[1027] isOpaque self = 0x18d2020
Sep 14 17:53:23 Dot View[1027] drawRect self = 0x18d2020
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:26 Dot View[1027] setRadius self = 0x18d4860
Sep 14 17:53:28 Dot View[1027] mouseUp self = 0x18d2020
Sep 14 17:53:28 Dot View[1027] isOpaque self = 0x18d2020
Sep 14 17:53:28 Dot View[1027] drawRect self = 0x18d2020
----------------------------------------------------------------------------------


The real question is why are there 2 instances of the DotView class?



Thanks


  • Follow-Ups:
    • Re: Example DotView from Learning Cocoa.
      • From: David Rehring <email@hidden>
  • Prev by Date: Re: Determinate NSProgressIndicator without animation?
  • Next by Date: Re: Mixing Obj-C & Java in same Cocoa app?
  • Previous by thread: AppleScript/AppleEvents in Cocoa
  • Next by thread: Re: Example DotView from Learning Cocoa.
  • Index(es):
    • Date
    • Thread