• 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: Stupid Linker Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Stupid Linker Question


  • Subject: Re: Stupid Linker Question
  • From: Chris Espinosa <email@hidden>
  • Date: Tue, 1 Feb 2005 10:53:17 -0800

On Feb 1, 2005, at 8:08 AM, James Bucanek wrote:

I need a little wisdom from those that have been working with XCode for awhile.

I just added a Carbon call to my Cocoa/Obj-C project (LSCopyItemInfoForRef) and the build died when it got to the linker. So I played around, and finally decided to add the "ApplicationServices.framework" to my External Frameworks and Libraries. The program now links and runs just fine.

Poking around a bit, I discovered that the ApplicationServices.framework is actually a collection of other frameworks (about a dozen), most of which I'll never use.

Is there anything "bad" about linking against some large collection of frameworks that you don't reference? Am I bloating the link tables of my application, or creating run-time dependencies that I shouldn't?

On the other hand, it there anything "bad" about digging into a collection of frameworks like ApplicationServices and trying to link to just the one or two specific sub-frameworks directly? Should one stay out of the details of frameworks, just and one should stay out of details of packages?

ApplicationServices, CoreServices, AppKit, Cocoa, and Carbon are "umbrella frameworks" that, as you noticed, contain other frameworks.


See the Apple Conceptual Overview for Umbrella Frameworks:
http://developer.apple.com/documentation/MacOSX/Conceptual/ OSX_Technology_Overview/SystemFrameworks/chapter_5_section_2.html


The Purpose of Umbrella Frameworks:
http://developer.apple.com/documentation/MacOSX/Conceptual/ SystemOverview/Umbrella/chapter_7_section_3.html


Linking and Including Guidelines:
http://developer.apple.com/documentation/MacOSX/Conceptual/ SystemOverview/Umbrella/chapter_7_section_4.html


Chris

Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

References: 
 >Stupid Linker Question (From: James Bucanek <email@hidden>)

  • Prev by Date: GDB error
  • Next by Date: Re: Stupid Linker Question
  • Previous by thread: Stupid Linker Question
  • Next by thread: Re: Stupid Linker Question
  • Index(es):
    • Date
    • Thread