tags:

views:

98

answers:

1

Hello

Can any one help me to find out, how I can setup Hessian Kit on existing iPhone project. What are the steps required to run a simple hello world program.

I have Hessian Kit (http://sourceforge.net/projects/hessiankit/) but don't know how I can include this in my existing project.

Please help

Thanks SD

+2  A: 

Ok, I just download it and had a quick look. The download is the source code of the project.

  1. Download and open the project in XCode.
  2. Build the static library target.
  3. Goto the project you want to include the kit in.
  4. Add a group under the frameworks.
  5. Add into the group, the static lib (.a) and any header files (.h) that just got built by #2.

Thats the quick summary :-)

Derek Clarkson
thanks a lot, just one more question, how to declare @protocol for this (http://wiki.caucho.com/Hessian_-_Objective-C_2.0_Implementation)
iPhoneDev
I'll assume you are new to Objective C. A protocol is the equivalent of a Java interface. Simply create a header file (*.h) in your project and enter the @protocol there. Classes can implement the protocol and it's methods by declaring them in their header files: #import "myprotocol.h" @interface someclass : NSObject<MyProtocol> ... @endCheck the chapter in the Objective C manuals on Protocols and Categories.
Derek Clarkson