Re: static typing (Learning Cocoa Chapter 13)
Re: static typing (Learning Cocoa Chapter 13)
- Subject: Re: static typing (Learning Cocoa Chapter 13)
- From: John Hörnkvist <email@hidden>
- Date: Fri, 21 Sep 2001 20:33:36 +0200
On Friday, September 21, 2001, at 07:07 PM, 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?
You need to put an asterisk after the class name;
NSView* myView;
Regards,
John Hornkvist
--
ToastedMarshmallow, the perfect Cocoa companion
http://www.toastedmarshmallow.com