• 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
2933 errors!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

2933 errors!


  • Subject: 2933 errors!
  • From: Daniel Child <email@hidden>
  • Date: Thu, 08 Dec 2005 00:38:52 -1000

Hi All,

I am stumped. I am trying to build a menuless app, one that loads a window the user interacts with. Since NSApplicationMain seems to expect a particular "MainMenu.nib" I tried simulating the process as follows:

/* This is the default source file for new Cocoa bundles. */

/* You can either fill in code here or remove this and create or add new files. */

#import <Cocoa/Cocoa.h>

int main(int argc, const char *argv[])
{
[NSApplication sharedApplication];
[NSBundle loadNibNamed:@"TestPanel" owner:app];
[NSApp run];
return 0;
}

I tried cleaning targets. I checked the prefix header and it includes AppKit and Foundation (created automatically). I tried selecting and not selecting the AppKit and Foundation frameworks among the resource files. I even tried commenting out everything. To give you an idea of the errors, here are the first few.

In file included from /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:9,
from /System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h:12,
from main.c:5:
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:53: syntax error at '@' token
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:53: parse error before "NSString"
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:55: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:56: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:57: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:58: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:61: parse error before '*' token
/System/Library/Frameworks/Foundation.framework/Headers/ NSObjCRuntime.h:62: parse error before '*' token

I have no idea what is broken here. Thanks for the help.

Daniel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
  • Follow-Ups:
    • Re: 2933 errors!
      • From: "Timothy J. Wood" <email@hidden>
  • Prev by Date: Re: resize image with cocoa
  • Next by Date: Re: resize image with cocoa
  • Previous by thread: Re: creating an app w/o MainMenu.nib
  • Next by thread: Re: 2933 errors!
  • Index(es):
    • Date
    • Thread