(don't forget to reply to the list).

I'm not sure, but I think you are confusing WebKit and WebObjects. WebObjects 
is an application server written in Java that Apple wrote. The code you are 
sending is from WebKit. Very different things.

> How do I import the objective c class into an eclipse project?
> Here is the class:
>  
>  
>  
>  
>  
>  
>  
> /* Here is an example .h file, "CircularList.h".
> All behavior is inherited from List, which defines a List of objects.
> Nowadays we can use NSArray which is more complex than List.
> *
> /
> 
> #include <objc/List.h> /* Superclass interface */
> @interface CircularList: List /* List is superclass */
> {
>     int currentLocation;
> }
> - (NSString *) next; /* Returns next object in List or nil if none. */
> @end
> 
> 
> 
> 
> 
> /* Here is the corresponding .m file: */
> #include "CircularList.h"
> @implementation CircularList
> - (NSString *) next
> {
> int numObjects = [self count];
> if (currentLocation >= numObjects)
>     currentLocation = 0;
> return [self objectAt:currentLocation++];
> }
> + (NSString *) webScriptNameForSelector:(SEL)sel
> {
> if (sel == @selector(nameAtIndex:))
>     name = [self next];
> return name;
> }
> + (BOOL)isSelectorExcludedFromWebScript:(S…
> {
> if (sel == @selector(nameAtIndex:)) return NO;
>     return YES;
> }
> @end
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> How do I connect the objective c with the javascript file or eclipse project? 
> Where does the objective c class go (eg same folder as js)? What is the 
> javascript to call my function 'next'? What does the following code do?:
> + (BOOL)isSelectorExcludedFromWebScript:(S…
> {
> if (sel == @selector(nameAtIndex:))
>      return NO;
> return YES;
> }
> 
> Sent from my iPad 2
> 
> On 11 Feb 2013, at 20:47, Pascal Robert <[email protected]> wrote:
> 
>> 
>> Le 2013-02-11 à 15:45, Mike Schrag <[email protected]> a écrit :
>> 
>>>>> What IDE can I use for WebObjects development? Can you send me 
>>>>> installation instructions for mountain lion and a link to a hello world 
>>>>> webobjects WEBSITE tutorial? When making a WebObjects WEBSITE, can I call 
>>>>> objective-c classes and functions, if so, how?
>>>> 
>>>> You will need to wrap it with a JNI. Check 
>>>> http://jenkins.wocommunity.org/job/Wonder/javadoc/er/attachment/thumbnail/ImageIOImageProcessor.html
>>>>  for an example.
>>> I would use JNA over JNI these days. However, I would also say that you 
>>> don't want to do it. It would have to be a very compelling reason to do it 
>>> in my book. You make everything about your deployment significantly more 
>>> complicated, and you become platform-bound as well.
>> 
>> I have to agree with this. And it would be crazy to host something on OS X 
>> Server unless you really need something on it (and even, iCal Server and 
>> Address Book Server are available as open source, you can use another wiki, 
>> you can use OpenLDAP instead of Open Directory).


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to