Re: Problems Compiling Dot View Exercise.
Re: Problems Compiling Dot View Exercise.
- Subject: Re: Problems Compiling Dot View Exercise.
- From: Chris Gehlker <email@hidden>
- Date: Fri, 07 Sep 2001 14:47:53 -0700
On 9/6/01 3:18 PM, "Ray Lancashire" <email@hidden> wrote:
>
Hi Group,
>
>
I have a different question this one, on topic.
>
>
I have been running through the O'Reilly book on Learning Cocoa. I am
>
a bit frustrated with books the seemingly give you a program the
>
works, but when you compile them, you run into problems.
>
>
Maybe someone could point me in the right direction.
>
>
I have one error which I can't fix. its to do with the " [self
>
setNeedsDisplay:YES]; " within the "mouseUp event".
>
It states it is the first time it has been used, and not declared.
>
I'm 99% sure I have typed everything correctly.
>
>
I have even tested the example project, downloaded from the O'Reilly
>
web site. Compiles without a problem.
>
>
Do I need to compile the header files separately?
setNeedsDisplay: is defined in NSView.h which is part of <Cocoa/Cocoa.h>.
Make sure you are importing that somewhere.
--
Many individuals have, like uncut diamonds, shining qualities beneath a
rough exterior. - Juvenal, poet (c. 60-140)