Re: static typing (Learning Cocoa Chapter 13)
Re: static typing (Learning Cocoa Chapter 13)
- Subject: Re: static typing (Learning Cocoa Chapter 13)
- From: Michael Grant <email@hidden>
- Date: Fri, 21 Sep 2001 12:55:44 -0500
At 10:18 -0700 9/21/2001, Henri Lamiraux wrote:
Try dummyView*
Either that's not it or I'm not understanding you properly. I
shouldn't need the asterisk since the outlet (object) variables are
already pointers, right? I tried just adding an asterisk anyway, and
it didn't help.
A possible hint as to the nature of the problem: the compiler error
messages are "in file included from ToDoAppDelegate.m:2:". This
wouldn't have something to do with the way the various files import
each other, would it? The #import directive is supposed to prevent
that sort of problem, right? I'm afraid I don't know enough about the
compiler yet....
Thanks!
Michael
On Friday, September 21, 2001, at 10:07 AM, Michael Grant wrote:
Chapter 13 of "Learning Cocoa" instructs the reader to statically
type the interface outlets in "InfoWindowController.h". But when I
try to compile, I get the error messages "'dummyView' cannot be
statically allocated" and "statically allocated objects not
supported". If I change the allocation for "dummyView" back to "id"
and try again to compile, I get the same message for the next
variable, and so on. What am I doing wrong?
--
Now with LRF support and LBL technology!