• 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: Subject: Re: How to share Cocoa classes?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: Re: How to share Cocoa classes?


  • Subject: Re: Subject: Re: How to share Cocoa classes?
  • From: Jesse Armand <email@hidden>
  • Date: Mon, 6 Jul 2009 21:37:16 +0800

>
> Is this option applicable to library project settings or to a project where
> this library is called from?
>

Since the linking is done on the project that's including the library,
so this should be done on the project that's using the library.

>
> Could you please give an example of particular directories, where I could
> put headers as well as the library? All directories at root level are
> write-protected. What is the correct location to put my own libraries?
>
> Also what particular settings are responsible for headers (and libraries)
> search path?

If you want to put it in /Developer/SDKs/MacOSX10.5.sdk/usr/lib/ you
need to use the user with administrator privileges, just like when you
install the Xcode and its SDK.

If you put it there, the headers should be in
/Developer/SDKs/MacOSX10.5.sdk/usr/include/

But, I usually just put my own projects in my own folders, not system
folder, unless if I want to release that library into the public, as a
part of the Mac OS X SDK, which is unlikely.

When you do the latter, just add a header path corresponding to your
own folder, like:

/Projects/MyLibrary/Headers

Libraries should be added to the project, not searched.
_______________________________________________

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

References: 
 >Subject: Re: How to share Cocoa classes? (From: "Alexander Bokovikov" <email@hidden>)

  • Prev by Date: Re: Setting a document's icon and default app
  • Next by Date: Re: Font matching
  • Previous by thread: Subject: Re: How to share Cocoa classes?
  • Next by thread: Layout NSTextAttachment
  • Index(es):
    • Date
    • Thread