Good example code for Objective-C [closed] - objective-c

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I'm trying to learn objective-c and am having a hard time coming from (java / C#). Does anyone have sample code that explains how the inner workings of objective-c work? I found a couple tutorials (below) but I'd like to start working through some examples that are a little more complex than "hello world".
http://cocoadevcentral.com/d/learn_objectivec/
http://www.otierney.net/objective-c.html
http://mobileappmastery.com/objective-c-tutorial/

Ray Wenderlich has some very good tutorials. His Simple iPhone App Tutotial is in 3 parts. If you follow it step by step, it will give you a great overview on how an iOS app works. Once you complete it, you can follow is more complex tutorials. Good luck.

I'd recommend a decent book, too: it's a complex language, and unless you get an end-to-end grounding in its peculiarities (and there are a number of them), you're almost certain to confuse yourself at some point. (There are definitely more opportunities to confuse yourself with Objective-C than C++, in my opinion...)
A book I like a lot is "Learning Objective-C 2.0", by Robert Clair, published by Addison-Wesley...

If you're looking for example working code, I've been using two main source -
Cocoa Controls - for specific UI elements
Binpress - for complete applications and SDKs
For me, the most effective way to learn is by going over actual working code from real applications, instead of mock code used in tutorials and very basic examples. Maybe it's because I already have background in other languages and don't need to cover the basics.

Related

iPad SDK Tutorials [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Do you know a great place to find tutorials for dev to iPad ?
Like custom view controllers, split views ... this things ...
Cause I search on google but google changes "ipad" per "iphone", and I did't find big things in documentation...
Please help-me...
PS: Sorry, my English sucks...
See this question: iPhone Development: Resources for beginners
My answer from above question for ease:
I just recently started programming for iPhone(Though final product is targeted for iPad) as well so I can pass on the resources that have helped me immensely.
eBooks:
http://www.techotopia.com/index.php/Objective-C_2.0_Essentials
http://www.techotopia.com/index.php/IPhone_iOS_4_Development_Essentials_Xcode_4_Edition
Tutorials:
http://www.raywenderlich.com/
The eBooks I have linked are both absolutely fantastic and one of the few xCode 4.0 books that I was able to find that seemed to be of an actual usable quality. They both contain easy to follow and clear tutorials on simple and more advanced aspects of programming for iOS.
Ray's site is an immensely helpful resource as it contains both a very active forum base for iOS programming in addition to a constantly growing tutorial collection as there are 4-5 people that constantly are creating new tutorials that the community votes on and suggests every week. It contains some more advanced topics than the above books and I would recommend looking at it after doing a few walk through/tutorials from the books.
You are also on a pretty good site already for clarifying questions you cannot find covered elsewhere :D
Now for the bit specific to your question, like rafa said, iPhone and iPad programming are ,for all intents and purposes, identical. There are certain things like the SplitViewController that are only available on iPad but if you need to use those a google search with the relevant terms will yield the correct tutorials(The links I have provided also include examples on SplitViewControllers). If you have more specific iPad sdk questions provide an explanation of what you are trying to do and I'm sure the community can try to help you out.
Best of luck! -Karoly
Go to
Developer.apple.com
And iPad and iPhone dev are essentially the same

How can I learn Mirah? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
With Mirah, I am refering to the JVM language: http://www.mirah.org/
The only useful documentation available online are the examples. I understand it says it has a ruby-like syntax, but I do believe there are Mirah-specific quirks to it.
How would I go on identifying the various syntax quirks? Will learning Ruby itself suffice in learning Mirah?
Thanks!
If you know Java pretty well, you can start off by thinking of Mirah as Java with some funny syntax and type inference. You don't need to know Ruby's semantics to use Mirah, because Mirah uses Java's semantics for the most part.
There aren't really any tutorials about learning the language yet because the language is still changing and evolving.
Once you start trying to look at Mirah's internals, you'll want to beef up on your Ruby though, because most of Mirah is currently implemented in Ruby, JRuby in particular. If you have any questions about JRuby, the #jruby IRC channel has helpful people in it-- #mirah works too, but there are fewer regulars at the moment.
No, I don't think that learning Ruby will be sufficient for learning Mirah, although it would probably be sufficient to get started. As I understand it, the syntax is fairly similar but isn't identical - Mirah has optional type annotations and doesn't allow metaprogramming. Still, they're probably sufficiently similar that it would help.
However, the best way to learn any language is just to try something in it - write a little app, and learn as you go.

What is a fast C or Objective-C math parser? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I've looked around quite a bit for a fast math parser in either C or Objective-C Almost all of the libraries I saw are written in C++, and I don't really want to go through the hassle of getting that to compile. Can anyone make a recommendation?
I haven’t used them myself, but you could try GCMathParser and DDMathParser.
There won't be any hassle with the compiling, ObjC can work side by side with any C++ class. Search for ObjC++ here, its really pretty easy (its basically just renaming everything from *.m to *.mm)
See my ae library (which uses Lua) and libmatheval.
There is a Code Project where this problem was addressed. Note this is for C++ -- sorry just saw that you're looking for C / Objective-C. As it builds a library, you could write a simple interface and expose it to C. There's a really succinct explanation here of how to go about doing this.

How can I start learning about objective C? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I would like to start developing an application for Ipad (a simple one).
My doubt is that i heard that is only possible if you have a Mac, and isnt with a PC. Is it true?
Normally i use to develop applications using .Net and Visual Studio, how is the learning curve taking in count this fact?
Do you have any good web reference or tutorials about objective C?
Yes,native Ipad development using XCode requires a Mac.. there is just no getting around that.
Objective C 's syntax is a little weirder than what you will be used to... lots of [] instead of .
but the concepts are going to be pretty much the same. If you have an Ipad, there are lots of free apple docs in the ibook store that you can go though. or if you have joined the developer program, then developer.apple.com has some amazing stuff with downloadable examples.
All the best
It's true that you need a Mac. Objective-C isn't a very complicated language, so factor in maybe a day or two for getting used to Xcode and learning the language. Then it has so far taken me about ten years to get an incomplete understanding of the APIs...but only because there are things I didn't need to use yet :-).
Apple has very good documentation of Objective-C at its website, developer.apple.com.

Objective-C Bloggers [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I've been primarily developing in c# for the last few years and have found that staying up-to-date with some of the best c# blogs (Ayende, Jeremy Miller, Greg Young, Phil Haack, et al) has been invaluable. So, I'm just getting into objective-c and iPhone development and am wondering who are the top bloggers I should be keeping up with are.
I enjoy these:
cocoa is my girlfriend
cocoa with love
icode blog
iphone dev tricks
iphone dev
You can check answers to this question.
There are a ton of Objective-C / Cocoa / iPhone coders on Twitter...so I would look into setting up a Twitter account if you haven't already.
CocoaCast is a great resource. You will also find a list of Cocoa blogs here
Another good one that is sadly not updated as often as it should be is Call Me Fishmeal. It's a mix of personal stuff along with a section called "Pimp My Code", where he goes into great detail on how to write excellent Objective C code.
I second the twitter recommendation, but Planet Cocoa (planetcocoa.org) is a must, it collates a wide range of Macintosh/iPhone developer blogs
I've got a pretty good list of Cocoa related blogs and podcasts on this blog post.