How does automatic Reference Counting in Objective C works? [duplicate] - objective-c

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
How does the new automatic reference counting mechanism work?
Can someone explain succinctly how automatic Reference Counting in Objective C works?

It's not a quick "type it up for the internet" answer. There was a nice hour-long lecture about it at WWDC 2011 that was dense with information.
Suffice it to say that the next step in compiler technology and code analysis is at the heart of how it works.

Related

List of uses of For Loops [duplicate]

This question already has answers here:
Which loop to use, for or do/while?
(13 answers)
Closed 6 years ago.
Can someone please list the possible uses of For loops in programming in general?
I would like to know so that when I have an issue, I can say "aha" a For loop would be perfect for that.
Any help appreciated.
Look here for informations about the for-loop.

Should I learn Swift or Objective C for iOS [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've just learnt objective c for the purpose of app building for iOS. In fact i started tinkering this week with my first attempt at an app, I was unaware about Swift and I am reading the text blog on the WWDC.
Going forward, should I be looking to build apps in Swift rather than Objective C now? And are the languages fairly similar?
I ask mainly because I've only just learnt the syntax for Objective-C and done little playing around with it, so dropping it all together isn't too much of a big deal for me. What's more important is that I use the right language. I got my first mac only a few months ago and I've not had much experience with Apple so I thought I'd go to place where people who are far more experienced all round could help point me in the right direction. I don't know if Swift means that it's likely Objective-C will be dropped entirely at some point.
This answer won't stand the test of time, but as of today:
Objective-C will be around and supported for a long time. (Apple has a massive amount of Objective-C source code that it's not going to port to Swift any time soon.)
Almost all iOS tutorials, examples, and books use Objective-C.
Almost all iOS-specific third-party source code you might want to use is implemented in Objective-C.
It's easier to use C and C++ libraries from Objective-C than from Swift.
There are many Objective-C experts you can get help from. There are very few Swift experts.
The Swift language and its standard library are currently not very well documented.
Stick with Objective-C for now. When you're comfortable with the iOS SDK and Swift is better documented, you can consider learning Swift.
UPDATE
It's been four months and my opinion on this hasn't changed. If you're looking for a more recent answer, this Hacker News thread was asked and answered today: Is Swift ready for production?

Find language of current keyboard [duplicate]

This question already has answers here:
Detecting current iPhone input language
(6 answers)
Closed 7 years ago.
I want to find out the language of the keyboard in code. Please someone help me.
You might want to look at this answer:
Detecting current iPhone input language
Unfortunately, as I far as I know, it is not possible to do exactly what you want.

The difference between dot and ! [duplicate]

This question already has answers here:
Closed 11 years ago.
Possible Duplicate:
Bang Notation and Dot Notation in VBA and MS-Access
What is the difference between Recordset!ID and Recordset.ID in VBA?
This has been answered many, many times. Just Google dot vs. bang.
It took a second to come up with these links.
http://blogs.office.com/b/microsoft-access/archive/2008/05/30/dot-or-bang.aspx
http://rogersaccessblog.blogspot.com/2009/04/bang-vs-dot-in-dao.html

Objective-C best practices [duplicate]

This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What are best practices that you use when writing Objective-C and Cocoa?
Does anybody know a good reference about Objective-C/Cocoa Best Practices?
Project organization, methodologies, naming and etc.
See question
What are best practices that you use when writing Objective-C and Cocoa?
A great "K&R" style reference for objective-c is Programming in Objective C by Stephen G. Kochan.
As for versioning, definitely set up a version control system. I wrote a tutorial on that here.