Re: Cocoa Java resources?
Re: Cocoa Java resources?
- Subject: Re: Cocoa Java resources?
- From: Paul Szego <email@hidden>
- Date: Fri, 25 Jun 2004 17:53:39 +1000
Mark,
thanks for the reply. I've found a couple of strange things, but so far
no replies from the list.
The one that's got me at the moment is trying to implement indexed
accessors for an "employees" to-many property in my document class. I'm
basically working my way through Hillegass's book "Cocoa Programming
for OS X" (2nd edition), but doing all the exercises in Java instead of
Objective-C. When I got to the code on p.143 he puts in the
insertObject:in<Key>AtIndex: and removeObjectFrom<Key>AtIndex: methods
so that he can hookup to the UndoManager it doesn't work in Java.
The bit I don't understand is why the set<Key>:(NSMutableArray *)
method is also required. If I put the equivalent set method in Java
things work, but only because it calls the set method instead of the
insert/remove methods.
Any help / ideas greatly appreciated.
PaulS.
On 25/06/2004, at 4:44 PM, Mark A. Stratman wrote:
>
Writing Cocoa applications in Java is almost exactly the same as
>
writing them in Objective C. It's mostly just a difference in syntax.
>
I've written a couple medium-sized programs in Java/Cocoa (mostly just
>
to try it out), and never ran into any Java-related snags.
>
>
The Cocoa Java API references should really be all you need. The
>
information you learned in your Cocoa/objc books will translate almost
>
perfectly to Java.
>
Once and a while there are differences, and they will be noted in
>
either the Cocoa Java API docs, or explained in the "Programming
>
Topics" section linked to from the various class references.
>
>
I wouldn't worry too much about it until you run into any specific
>
problems.
>
>
just my 0.02
>
- mark
>
>
On Jun 25, 2004, at 12:13 AM, Paul Szego wrote:
>
>
> Hi,
>
>
>
> I'm struggling to find much information beyond the basics about Cocoa
>
> development in Java. I've read the stuff at apple, searched the list
>
> archives, google'd, and even read the Objective-C specific books.
>
> Other than the basics there doesn't seem to be anything around for
>
> Java.
>
>
>
> Does anyone know where to get more info? Has anyone built anything
>
> non-trivial in Java/Cocoa?
>
>
>
> Help please, PaulS :(
>
> _______________________________________________
>
> 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.
>
_______________________________________________
>
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.
>
>
Paul Szego
http://www.nebulon.com
Nebulon Pty. Ltd.
Visit the Feature Driven Development (FDD) Community Site
http://www.featuredrivendevelopment.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.