General Question

andrew's avatar

Should I learn PyObjC or just dive right into Objective C?

Asked by andrew (16543points) July 30th, 2009 from IM

I’m a pretty good C/C++ programmer, but it’s been nearly 7 years since I’ve touched code with pointers and handles. I’m much more fluent in Python. That said, I’ve been reading that Python and PyObjC support in XCode 3 is pretty darn good.

Observing members: 0 Composing members: 0

9 Answers

chyna's avatar

Nerd. :)

styfle's avatar

Do you want to develop for the iPhone?
@chyna that nerd probably wrote a program you’re using right now.

chyna's avatar

No doubt! I’m just jealous.

andrew's avatar

@styfle In the future, yes, but now I’m just trying to have a little fun learning something new—I was inspired by a question on here the other day.

styfle's avatar

I’m a newbie C/C++ programming and after watching the Stanford objC class, I still don’t get it. I’m not used to working with a GUI or having to use a base class for stuff. I just know how to write stuff that runs in console/terminal. You sound like you know what you’re doing so I would just go for it. What exactly is pyObjC anyway?

cwilbur's avatar

The actual amount of working with pointers and handles that you do in idiomatic Objective-C is minimal. (Yes, each object is really a pointer, but you’re treating it semantically as an object and not as a pointer.) Most of Apple’s documentation is written assuming Objective-C as an implementation language, and so you’re going to need to learn enough of it to translate anyway, so you might as well start there.

If it doesn’t work out for you after you’ve spent a week or so at it, much of the stuff you learn about Cocoa will transfer directly to PyObjC, so it’s not like it will be wasted effort.

andrew's avatar

I may end up doing it in straight Obj-C anyway since I can’t get PyObjC to compile.

archaeopteryx's avatar

@styfle
> What exactly is pyObjC anyway? <
Google’s a great search engine. :)

Here’s your answer.

styfle's avatar

@archaeopteryx I was on my phone and didn’t feel like searching it at the time, but thanks for the info. I still think you should just go Obj-C, andrew.

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther