DrawingFun error 'randomPoint' undeclared


#1

I’m using Xcode 3.2.4 with OSX 10.6.8, but DrawingFun.xcodeproj won’t build without Xcode 4 files.
So I copied StretchView.h and .m into a NewFile NSView.

Build resulted in 4 warnings and 3 errors, which all look like they’re caused by the first error, ‘randomPoint’ undeclared.
But randomPoint is definitely in StretchView.h:

#import <Cocoa/Cocoa.h>
@interface StretchView : NSView {
NSBezierPath *path;
}

  • (NSPoint)randomPoint;
    @end

How do I fix it?

Nick


#2

Ah, a bracket got lost. :frowning:

Sorry to bother you all. At the time, I had no idea what else to look for and nowhere else to turn.

Nick