• 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
Linking in Categories from static libraries.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Linking in Categories from static libraries.


  • Subject: Linking in Categories from static libraries.
  • From: Andrei Tchijov <email@hidden>
  • Date: Fri, 4 Nov 2005 08:29:14 -0500

Hi,
I am having difficulties with getting Objective C Categories linked in from static library. I have a custom framework which could be build either as "framework" or as static library. It works great when I am using it in form of "framework" but when I am trying to link it in as a static library, I am getting "selector not recognized" on one of methods which belongs to "Category".
Also, it looks like, Mac OS X linker will link only "used" portion of static library. For example if library contains some class which is not refereed from application, then this class will not be linked in. (I have a class which is refereed from NIB but not from application itself. it was not linked in until I created dummy method where I allocated dummy object of this class) Does it sound right? Is it possible to force linker to link the WHOLE library?


You comment/replays will be highly appreciated,

Andrei Tchijov
Leaping Bytes, LLC

     web: www.leapingbytes.com
   email: email@hidden
      AIM: leapingbytes
Google: email@hidden
      ICQ: 151229319




_______________________________________________ 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:
    • [SOLVED]Linking in Categories from static libraries.
      • From: Andrei Tchijov <email@hidden>
  • Prev by Date: Re: newbie: adding nibs: i'm stuck
  • Next by Date: [SOLVED]Linking in Categories from static libraries.
  • Previous by thread: Re: Casting anonymous Objects leads to different values on getter functions (while getting no warnings at compile time)
  • Next by thread: [SOLVED]Linking in Categories from static libraries.
  • Index(es):
    • Date
    • Thread