• 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: NSClassFormString returning nil.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSClassFormString returning nil.


  • Subject: Re: NSClassFormString returning nil.
  • From: Quincey Morris <email@hidden>
  • Date: Wed, 04 May 2011 10:11:06 -0700

On May 4, 2011, at 09:12, Gustavo Pizano wrote:

>  linker problems

Vagueness like this makes it hard to help you. Sometimes the actual error messages are important in deciding where to look for a solution.

> What can I do?

I'd very seriously suggest you don't use a static library at all. It really doesn't provide you with any benefits, so you may as well include the source code directly instead.

The whole point -- well, *a* whole point -- of a static library (in traditional C terms) is to allow you to link just those parts that are referenced by your client application, without having to figure it out for yourself. This doesn't work very well in Objective-C, because the language's dynamism makes it impossible in general to determine what's "referenced" at link time.

If you have other reasons for library-izing your Objective-C code, a framework is a much better choice, probably.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: NSClassFormString returning nil.
      • From: Gustavo Pizano <email@hidden>
    • Re: NSClassFormString returning nil.
      • From: Kyle Sluder <email@hidden>
References: 
 >NSClassFormString returning nil. (From: Gustavo Pizano <email@hidden>)

  • Prev by Date: Re: Enable a button once text is added to textfield
  • Next by Date: Re: L-shaped custom view in Cocoa?
  • Previous by thread: NSClassFormString returning nil.
  • Next by thread: Re: NSClassFormString returning nil.
  • Index(es):
    • Date
    • Thread