Thanks a lot gentlemen. Will go the BNR way.
Cheers from Madrid
I just love the BNR books. But once you have read it - I would suggest reading up about all the modern syntax Objective-C has to offer these days.
Thanks a lot gentlemen. Will go the BNR way.
Cheers from Madrid
Any good recomendation for references on modern syntax Objective-C has to offer these days?
Other than dot methods mentioned in the BNR book, what else is there?
Any good recomendation for references on modern syntax Objective-C has to offer these days?
Other than dot methods mentioned in the BNR book, what else is there?
NSNumber aNumber = [NSNumber numberWithInteger: 42];
NSNumber aNumber = @(42);
NSArray *anArray = [NSArray arrayWithObjects:
@"one",
@"two",
@"three",
nil
];
NSArray *anArray = @[
@"one",
@"two",
@"three"
];
id anObject = [anArray objectAtIndex: 1];
id anObject = anArray[1];
[anArray replaceObjectAtIndex: 0 withObject: @"new object"];
anArray[0] = @"new object";
NSDictionary *aDictionary = [NSDictionary dictionaryWithObjectsAndKeys:
@"value1", @"key1",
@"value2", @"key2",
@"value3", @"key3",
nil
];
NSDictionary *aDictionary = @{
@"key1": @"value1",
@"key2": @"value2",
@"key3": @"value3"
};
id anObject = [aDictionary objectForKey: @"key1"];
id anObject = aDictionary[@"key1"];
[aDictionary setObject: @"new object" forKey: @"key1"];
aDictionary[@"key1"] = @"new object;
Hi everyone,
Thanks for your replies. Sorry for the long delay in answering. I just want to say thank you for the reference links. They will come in handy in my learning process. I want to add that I do have programming experience, having developed in ASP, ASP.NET and Visual Basic, have experience in at least the basics of Ruby, Lua, Javascript, C and C++. However, like always when learning a new language, the transition is not always easy. It seems like it will take years to become competent enough to profit from the App Store (if there's really any profit to be had), and yet I see so many apps that I just wonder how others have done it, seemingly so quickly. So it is not that I am looking for shortcuts or just looking to reuse other people's code.
Still, I've learned a great deal since I first started this post, particularly about TableViews (my current area of study), so I guess that "seeming to take years" stuff might only be a feeling of mine
Thanks, and may the programming be with you all![]()
If your end goal is learning Obj-C, learning Java first is a horrid idea.
Should I trust the opinion of someone in this forum, or that of the Stanford University faculty? The pre-requisites for the Stanford iOS development class are CS106A and CS106B. 106A is currently taught in Java. 106B in C++. Or CS107, which is taught in C. Those are the PRE-requisites.
Why? Perhaps because there are likely several 100 well-tested university courses and textbooks on algorithms, data structures, software methodology, etc., etc. using those languages, C/C++ and Java. Versus a few short chapters in Objective C books that have had only a tiny amount of university-level testing.
There's also a lot of old/new educational material in Scheme/Python.
Should I trust the opinion of someone in this forum, or that of the Stanford University faculty? The pre-requisites for the Stanford iOS development class are CS106A and CS106B. 106A is currently taught in Java. 106B in C++. Or CS107, which is taught in C. Those are the PRE-requisites.
Should I trust the opinion of someone in this forum, or that of the Stanford University faculty? The pre-requisites for the Stanford iOS development class are CS106A and CS106B. 106A is currently taught in Java. 106B in C++. Or CS107, which is taught in C. Those are the PRE-requisites.
Why? Perhaps because there are likely several 100 well-tested university courses and textbooks on algorithms, data structures, software methodology, etc., etc. using those languages, C/C++ and Java. Versus a few short chapters in Objective C books that have had only a tiny amount of university-level testing.
There's also a lot of old/new educational material in Scheme/Python.
Should you trust the opinion of someone who has done it or ...
Alas, many of the people who have "done it" themselves have no idea how to successfully teach a cross-section of other people (from brilliant to 49% percentile and lower) how to do it. Most have no idea how they really "did it" themselves, thus can't explain things worth beans. The ones who teach a lot of other people who can't just "do it" by themselves, how to do it, those are the teachers to trust.
Also, as a current student, I'd like to mention that I give zero thought to the pre-reqs of classes. If I want to take a class, I take it.
I would like to point out that at Stanford, the final destination is for you to become a programmer.
Does your college not require you to take prerequisites in order to register for a class? Or at least take a test to prove that you have the required knowledge?
Exactly. There are too many people who think they can become a fluent iOS developer of full-featured native apps without becoming a programmer along the way.
You won't learn to read and write French poetry as an adult just using a Paris travel-guide phrasebook.
Exactly. There are too many people who think they can become a fluent iOS developer of full-featured native apps without becoming a programmer along the way.
Over the years I've gone from Basic to Pascal to C++ to Delphi to Java to C# then to Obj-C. It was difficult even with the experience I had. Not only are you learning a new language, but a new IDE, a new OS, a new submission system, a new framework, etc.
It takes time and effort and persistence. The best way I've found to learn a language is to have a project.
Also, cookbooks are great.