Re: cocoa-dev digest, Vol 2 #399 - 15 msgs
Re: cocoa-dev digest, Vol 2 #399 - 15 msgs
- Subject: Re: cocoa-dev digest, Vol 2 #399 - 15 msgs
- From: Adam Atlas <email@hidden>
- Date: Tue, 26 Mar 2002 12:27:35 -0500
On Tue, 26 Mar 2002 14:18:58 +0000 (GMT), =?iso-8859-1?q?Annie=20Felix?=
<email@hidden> wrote:
Hi all
While creating an application in projectbuilder the
frameworks are included automatically.But it has only
.h files.Any idea of how the .m the implementation
files are accessed.How is it recognized by the
application??
Thanks in Advance
Annie
The implementations of the header files are in the framework's Mach-O
binary. For example, the binary in Foundation.framework is:
/System/Library/Frameworks/Foundation.framework/Versions/A/Foundation
This file is the original .m files compiled into one file. Just like
when compiling a Cocoa program, the binary is at
SomeApp.app/Contents/MacOS/SomeApp, except frameworks don't have a main
function so they can't run as programs.
So, the answer is, the header files tell your program what objects and
methods exist, and your application can access them once built because
Project Builder combines the binaries of your application's master.o
with the binaries of all of your project frameworks.
If you'd really like to see how Cocoa works, you can get GNUstep
<www.gnustep.org>. It's an open-source clone of Cocoa/OpenStep. The base
(Foundation) library is almost complete, but the gui (AppKit) library
still needs a lot of work.
--
Adam Atlas
Atomm Software
http://www.atommic.com
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.