• 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
Linker can't find NSApplication?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linker can't find NSApplication?


  • Subject: Linker can't find NSApplication?
  • From: Thomas Harrington <email@hidden>
  • Date: Thu, 22 Aug 2002 11:11:37 -0600

I'm trying to run a sheet from a class, and I'm getting a strange linker error:

Undefined symbols: _NSApp

The class #imports <AppKit/AppKit.h>, and Cocoa.framework is linked, so what's the problem? I tried changing the NSApp reference to [NSApplication sharedApplication], but that just changes the error to read:

Undefined symbols: .objc_class_name_NSApplication

I thought it might have something to do with the #imported header files, but <AppKit/AppKit.h> is the first one there, followed only by some project-specific headers. I don't see anything these that would cause NSApplication's definition to disappear.

I've got another class in the same project that references NSApp successfully, and I can't find any meaningful differences in the #import chain. Where's NSApp going?
_______________________________________________
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: Bundle loading
  • Next by Date: Classes vs. custom palettes
  • Previous by thread: Deallocating Distributed Objects
  • Next by thread: Classes vs. custom palettes
  • Index(es):
    • Date
    • Thread