- Server applications written in Objective-C and GNUstep-base can take advantage of the high-level object-oriented features of Objective-C while maintaining the performance and flexibility of C.
- GNUstep-base provides the Foundation library, which includes classes for tasks like threading, networking, data storage and more that are useful for server applications.
- Objective-C allows mixing C code for performance critical parts while organizing the overall application structure using object-oriented patterns supported by the GNUstep-base libraries.
Report
Share
Report
Share
1 of 33
More Related Content
Building Server Applications Using Objective C And Gn Ustep
1.
2. Server Applications “Server Applications” = programs with no GUI In GNUstep, server applications are based on GNUstep-base. GNUstep-base is the most complete and extensively polished and tested part of GNUstep ... … but is little known to the public. People often identify GNUstep only with the GUI framework/development environment.
33. Makefile library that automatically takes care of configuring and building on different platforms gnustep-base OpenStep Foundation Kit implementation
40. Typical Manual Installation (RedHat) yum install gcc-objc libxml-devel openssl-devel wget ftp://sourceware.org/pub/libffi/libffi-3.0.1.tar.gz tar xfvz libffi-3.0.1.tar.gz cd libffi-3.0.1 ./configure make su -c 'make install' <edit /etc/ld.so.conf adding /usr/local/lib, then run ldconfig as root> wget ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-make-2.0.8.tar.gz tar xfvz gnustep-make-2.0.8.tar.gz cd gnustep-make-2.0.8.tar.gz ./configure make su -c 'make install' . /usr/GNUstep/System/Library/Makefiles/GNUstep.sh wget ftp://ftp.gnustep.org/pub/gnustep/core/gnustep-base-1.18.0.tar.gz tar xfvz gnustep-base-1.18.0.tar.gz cd gnustep-base-1.18.0 ./configure –enable-openssl make su -c 'make install'
41. “Hello World!” Program “Hello World” using Objective-C / GNUstep-base hello.m #import <Foundation/Foundation.h> int main (void) { NSLog (@“Hello world!”); return 0; }
42. “Hello World!” Program “Hello World” using Objective-C / GNUstep-base GNUmakefile include $(GNUSTEP_MAKEFILES)/common.make TOOL_NAME = hello hello_OBJC_FILES = hello.m include $(GNUSTEP_MAKEFILES)/tool.make
43. “Hello World!” Program “Hello World” using Objective-C / GNUstep-base Usual compilation commands make make clean make distclean make install make messages=yes make install messages=yes
44. “Hello World!” Program “Hello World” using Objective-C / GNUstep-base Compilation results are in ./obj Let's try it out: Tutorial Compilation Session
45. GNUstep-base coding: where to start GNUstep Mini Tutorials (Introduction): http://www.gnustep.it/nicola/Tutorials/index.html GNUstep Base Documentation (API Reference): http://www.gnustep.org/resources/documentation/Developer/Base/Reference/index.html
46. GNUstep-base coding: basic classes Class cluster Design Transparent way of optimizing classes without changing the public API
47. When you create a NSString or NSArray you actually get an instance of a subclass optimized to perform best in your situation
87. A look at some useful libraries You can use any C library you want
88. Objective-C libraries provided by GNUstep check the dev-libs module in subversion Objective-C libraries provided by other parties SOPE (opengroupware.org)
94. GNUstep Database Libraries SQLClient SQL Layer (low-level) Standard SQL layer to execute SQL queries/commands
95. “Backend bundles” (plugins) for the different databases (standard bundles: PostgreSQL, MySQL, SQLite, Oracle) High-performance features Connection pooling