• 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
Missing Obj-C Category Method Implementations: No linker errors?!?!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Missing Obj-C Category Method Implementations: No linker errors?!?!


  • Subject: Missing Obj-C Category Method Implementations: No linker errors?!?!
  • From: Jerry Krinock <email@hidden>
  • Date: Fri, 13 Mar 2009 21:57:52 -0700

I have a Cocoa application target in a project. I need to make a helper tool using the same sources, but I estimated that my tool will only need 40 of maybe 200 of the files which are members of the application target. So instead of duplicating the application target I created the tool target from scratch, using the Foundation Tool template, and added files as needed until it built and linked without error.

But I'm still missing needed files, so I'm adding them one-by-one as I see runtime crashes. Yikes. The missing methods are explicitly invoked in the source code that is compiled, and so far I believe that all of the missing method implementations are all in Objective-C "categories", for example, an NSString category, etc.

I understand I'm not getting any build errors since the #imports are including all the required declarations. But why don't these omissions of category implementations generate linker errors? I don't see any such Build Setting under Linker.

Thank you,

Jerry Krinock

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


  • Follow-Ups:
    • Re: Missing Obj-C Category Method Implementations: No linker errors?!?!
      • From: Jonas Maebe <email@hidden>
  • Prev by Date: Re: [SOLVED] Shark + xcode + C++
  • Next by Date: Re: Missing Obj-C Category Method Implementations: No linker errors?!?!
  • Previous by thread: Re: Incomplete/incorrect dependency analysis after switching active architecture?
  • Next by thread: Re: Missing Obj-C Category Method Implementations: No linker errors?!?!
  • Index(es):
    • Date
    • Thread