• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: static typing (Learning Cocoa Chapter 13)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: static typing (Learning Cocoa Chapter 13)
      • From: Ondra Cada <email@hidden>
References: 
 >static typing (Learning Cocoa Chapter 13) (From: Michael Grant <email@hidden>)

  • Prev by Date: Re: static typing (Learning Cocoa Chapter 13)
  • Next by Date: controlling windows
  • Previous by thread: Re: static typing (Learning Cocoa Chapter 13)
  • Next by thread: Re: static typing (Learning Cocoa Chapter 13)
  • Index(es):
    • Date
    • Thread