LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-17-2012, 03:04 PM   #1
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Rep: Reputation: Disabled
Objective-c


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!
 
Old 08-01-2012, 03:09 PM   #2
leehanken
LQ Newbie
 
Registered: Jan 2009
Posts: 14
Blog Entries: 1

Rep: Reputation: 7
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.
 
1 members found this post helpful.
Old 08-01-2012, 03:27 PM   #3
amboxer21
Member
 
Registered: Mar 2012
Location: New Jersey
Distribution: Gentoo
Posts: 291

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by leehanken View Post
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?
 
Old 08-02-2012, 03:19 AM   #4
leehanken
LQ Newbie
 
Registered: Jan 2009
Posts: 14
Blog Entries: 1

Rep: Reputation: 7
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Objective C vbx_wx Programming 1 12-25-2010 09:53 PM
Should I learn Objective C? CoderMan Programming 16 02-26-2010 04:21 PM
How to compile Objective-C? MTK358 Programming 3 12-31-2009 07:36 PM
Objective-C Newbie MexDeath Programming 11 08-14-2009 11:48 PM
Objective-C dogn00dles Programming 2 11-29-2003 02:30 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration