advertisement

Article:
  Building a Scratch Pad with Cocoa
Subject:   works but with warning (short code eg.)
Date:   2001-12-10 09:24:48
From:   psheldon
Response to: NSBezier subclass creation set with no get accessor

ColorBezier.m:20: warning: instance variable `theColor' accessed in class method


+ (ColorBezier*)initWithColor:(NSColor*)color {
self = [[super bezierPath] retain];

if (self) {
theColor = color;
}
return self;
}


1 to 1 of 1
  1. got rid of warning with accessor and less self
    2001-12-11 10:15:44  psheldon [View]

1 to 1 of 1