Re: Organizing .h and .m files.
Re: Organizing .h and .m files.
- Subject: Re: Organizing .h and .m files.
- From: Nelson Santos <email@hidden>
- Date: Fri, 5 Oct 2007 15:15:13 -0400
On Oct 5, 2007, at 2:41 PM, Greg Guerin wrote:
A static library can contain more than one object file.
See 'man libtool'. Note the -static option.
Yeah, I know. But I didn't want to add a whole library if I only
wanted one of the classes included in my app. But as someone else
had mentioned to me already, it really isn't a big deal if I did
that. I agree. This is one way I can do it that matches what I want
to do pretty closely.
Plus, I'd have to create a
project dependency for each project to make sure I compile the latest
code to have the most up-to-date library.
Well, now it sounds like you want the features of both a static lib
and a
dynamic lib. You can't. You have to pick one, and accept the
tradeoffs
that come with the particular form. Engineering is the art of making
tradeoffs.
Well, I don't quite agree with this. Both static and dynamic
libraries can be declared as dependencies thus causing my app to
obtain the latest version of the libraries when I build.
There's no one answer because each possible answer has different
tradeoffs.
This is what I was trying to get at, I guess. No is no configuration
that I can set up that would satisfy all three of my criteria. The
ones that come pretty close are: static library, embedded framework
and just manually doing "Add existing files..." to my project as
needed from a common folder that houses all of my .h's and .m's.
You've listed some requirements, but are they REALLY
requirements, i.e. hard and fast and unchangeable?
No, they are not concrete requirements. I only listed those to make
sure that the readers of this list understood what I was trying to
do. I am aware of the various configs that you mentioned (some more
than others). I was merely trying to find out if there were other
configs out there that I'm not aware of that satisfied those criteria
I mentioned. Your response is further proof that there probably
isn't any. Maybe someone out there knew of a way and possibly even
uses that way.
There's no better way to do this than to try it yourself and see
what works
for you.
I've tried some of those and didn't bother with others because I knew
they wouldn't work for me. I decided on one way for now (the Add
Existing Files... method) and I'll stick to it for now.
Thanks!
Nelson
_______________________________________________
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