Re: Is Cocoa+Java considered relevant to the list?
Re: Is Cocoa+Java considered relevant to the list?
- Subject: Re: Is Cocoa+Java considered relevant to the list?
- From: Just van Rossum <email@hidden>
- Date: Fri, 26 Sep 2003 10:25:33 +0200
Ilan Volow wrote:
>
> It is the proper place for any Cocoa discussion in any language,
>
> though the vast majority here program in ObjC. I use Java for my
>
> Cocoa work, as a rule, as I like the toolchain better. I know of
>
> at least one person who uses CocoaPython, and hangs out here. (Or
>
> did - Just - you still here?)
(Only occasionally. I don't do Cocoa full time so I regularly disable
mail delivery for this list.)
>
Actually, I'm arriving at the use of Java for my program because it's
>
really the only choice I have.
>
>
My original program was written in python (for linux using PyGtk for
>
the UI). When I took a look at PyObjC,it seemed confusing and
>
unpythonic
It's about as Pythonic as practically possible. It will always be a
_little_ awkward since the way ObjC method invocations are spelled
doesn't translate to Python (and no, Python's keyword arguments are not
usable to spell ObjC's "named" arguments; they may look similar but
they're _very_ different). Bill Bumgarner has more than once claimed
that PyObjC is more mature than CocoaJava; I have no experience with the
latter, but I respect the guy ;-).
A big difference between CocoaJava and PyObjC is that CocoaJava
maintains a special mapping between ObjC method names and Java method
names, whereas PyObjC uses a very simple algorithm: every ":" becomes a
"_", so for example "writeToFile:ofType:" becomes "writeToFile_ofType_".
This looks a bit ugly, but has been working very well for us. It has the
great advantage that as soon as you know how that translation works, you
can just use the Cocoa documentation for ObjC. It's very direct.
>
and I couldn't find much substantial documentation on how
>
to use it.
I don't know how long ago you looked, but the documentations has
improved and there are many more examples now than a few months ago. And
then there's the pyobjc-dev mailing list, open for any PyObjC related
questions. Also: if you had specific problems with the documentation or
the examples or whatever, by all means, let us know so we can improve
things.
>
Python in general is also rather sparse in the way of
>
security/PKI classes and SSL. No dice.
I don't know much about the subject, but Python 2.3 comes with SSL
socket support on OSX. I can't judge whether calling that "sparse" does
the existing support justice or not. There's also plenty of 3rd party
stuff out there.
Just
_______________________________________________
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.