ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I read a few beginner tutorials on Objective-c and man is this language confusing. I am not new to programming either. I have been programming in C for 3 years. I also code with the GTK UI toolkit, basic ASM(NASM), AWK, and JavaScript. Yet still, for some reason, I find this language extremely confusing!
Anyone else feel the same?
How was it for you when you first started learning obj-c?
Your thoughts and insight would be greatly appreciated!
Objective C is the favoured language of Apple development, otherwise I wouldn't have gone near it. I learnt the basics watching the Standford University lectures on iTunes University. Having used C++ previously was an advantage, because knowing about object oriented programming is pretty central to doing anything in Objective C.
Some differences between Objective C and C++:
Instead of object.property or object.method(x) you say [object property] or [object method:x]
Instead of someobject = new someclass, you say someobject = [[someclass alloc] init]
Of course because Objective C is a superset of C, you can still use C code if you want to.
Objective C is the favoured language of Apple development, otherwise I wouldn't have gone near it. I learnt the basics watching the Standford University lectures on iTunes University. Having used C++ previously was an advantage, because knowing about object oriented programming is pretty central to doing anything in Objective C.
Some differences between Objective C and C++:
Instead of object.property or object.method(x) you say [object property] or [object method:x]
Instead of someobject = new someclass, you say someobject = [[someclass alloc] init]
Of course because Objective C is a superset of C, you can still use C code if you want to.
that would be awesome if I could use C still. how would I go about doing this? write a c program and compile it as an obj-c program?
I wanted to make apps for my itouch because android development is to much to deal with! I have to set a million things up jusg for the environment and just to get it running I have to do a million more things. Not to mention learn Java from ground up. Which isn't a problem, but I figured since I already have 3+ years in the C programming language; I figured obj-c and apple was the way to go.
So, how would I be able to use C with apple development?
To code for an iPod touch, an iPad or iPhone you need a Mac of some description running Xcode, you need to pay $100 for a developers account to be able to put an app onto a device. Some Objective C would be needed for the user interface, but underlying code like manipulating data could be in c, but the basics of Objective C really aren't that hard, the main challenge is learning Cocoa which is Apple's framework for doing useful things on their OS.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.