• 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: What's with 'dark' @implementation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: What's with 'dark' @implementation?


  • Subject: RE: What's with 'dark' @implementation?
  • From: "Mondragon, Ian" <email@hidden>
  • Date: Wed, 12 Mar 2003 13:47:25 -0600

if i'm not mistaken, this is probably due to the file being labeled as a
strictly C++ file (.cpp), instead of an ObjC++ file (.mm or .M)...

- ian

> -----Original Message-----
> From: Lance Drake [SMTP:email@hidden]
> Sent: Wednesday, March 12, 2003 12:39 PM
> To: email@hidden
> Subject: What's with 'dark' @implementation?
>
> This has got to rate BELOW 'newbie' questions - but, not being a
> newbie, I was shocked to find my wheels spinning when I created a class
> file in a cocoa project and the '@implementation' reference refused to
> be recognized as the invocation to my object functions.
>
> By 'dark' I refer to the color for classes in my PB prefs is 'green'
> and the test "@implementation" is drawn in 'black' - then, when I hit
> the compile button, as they say in hollywood script writers class,
> "Hilarity ensues..." [new projects, new editing, different versions of
> PB - results = the same]
>
> The first error returned:
> "/System/Library/Frameworks/Foundation.framework/Headers/
> NSObjCRuntime.h:53:
> parse error before `@' token... `NSString' was not declared in this
> scope"
> // -----------------------------------------
> // HEADER FILE SEZ: (SelectF.h)
> #import <Cocoa/Cocoa.h>
> @interface SelectF : NSObject
> {
> FSRef dest;
> }
> // return an autoreleased object
> + selectF;
>
> // accessor methods
> - (bool) selectDest: (FSRef *) outDest;
> - (IBAction) goButton: (id) sender;
> - (IBAction) noButton: (id) sender;
> @end
> // ----------------------------------------
> // SOURCE FILE SEZ: (SelectF.cpp)
> #import "SelectF.h"
> @implementation SelectF <<-- line in question
> + selectF // autoreleased object.
> {
> return [[[self alloc] init] autorelease];
> }
> - (IBAction) goButton: (id) sender { }
> - (IBAction) noButton: (id) sender { }
> - (bool) selectDest: (FSRef *) outDest
> {
> bool result = false;
> return(result);
> }
> @end
> // ----------------------------------------------
>
> Just one simple question... "What the heck?"
>
> Thanks,
>
> Lance
> _______________________________________________
> cocoa-dev mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/cocoa-dev
> Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: What's with 'dark' @implementation?
  • Next by Date: Re: Str255 Conversion
  • Previous by thread: Re: What's with 'dark' @implementation?
  • Next by thread: RE: Re[2]: What's with 'dark' @implementation?
  • Index(es):
    • Date
    • Thread