2009-09-10 08:49:06 -04:00
|
|
|
----------------------------------------------------------------------------
|
|
|
|
NB: This is the old wxCocoa port, you almost certainly want to read
|
|
|
|
docs/osx/install.txt for instructions about building wxOSX/Cocoa instead.
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
2003-07-24 09:20:59 -04:00
|
|
|
wxCocoa is still a work in progress.
|
|
|
|
|
|
|
|
To compile it, you will need Apple's Developer Tools. However, please
|
|
|
|
note that any work to make it suitable for GNUstep (which will require
|
|
|
|
a GCC release with Objective-C++) will be much appreciated.
|
|
|
|
|
2005-04-19 10:31:32 -04:00
|
|
|
Like most UNIX ports, the standard configure/make method works. You should
|
|
|
|
be able to build the library as static or shared. I usually build static.
|
2003-07-24 09:20:59 -04:00
|
|
|
|
|
|
|
On my system I have the following:
|
|
|
|
|
|
|
|
Checked out CVS source is in:
|
2004-05-04 04:27:20 -04:00
|
|
|
/Users/dfe/devel/wxHEADcommit/wxWidgets
|
2003-07-24 09:20:59 -04:00
|
|
|
Debug build directory is:
|
|
|
|
/Users/dfe/devel/wxHEADcommit/BUILD_COCOAd
|
|
|
|
|
|
|
|
From the debug build directory:
|
2004-05-04 04:27:20 -04:00
|
|
|
$ ../wxWidgets/configure --with-cocoa --enable-debug --disable-shared
|
2003-07-24 09:20:59 -04:00
|
|
|
$ make
|
|
|
|
$ cd samples/minimal
|
|
|
|
$ make
|
2005-04-19 10:31:32 -04:00
|
|
|
$ ./minimal.app/Contents/MacOS/minimal
|
|
|
|
|
|
|
|
Like wxMac applications, wxCocoa applications are "bundled". For development
|
|
|
|
purposes all this means is that an executable named "foo" needs to be
|
|
|
|
inside a "foo.app/Contents/MacOS" directory. For deployment you will need
|
|
|
|
an appropriate Info.plist and PkgInfo inside the foo.app/Contents directory.
|
|
|
|
|
|
|
|
wxCocoa (and Cocoa in general) has no need for Mac OS resources. It
|
|
|
|
certainly has no need for resource forks as no Mach-O applications should
|
|
|
|
_ever_ have resource forks (note: Bakefile violates this right now).
|
|
|
|
Please see the wxWiki and/or discuss this with wx-users before shipping
|
|
|
|
any wxCocoa apps if you are new to the OS X platform.
|