|
From: | Andreas Fink |
Subject: | Re: Accessing array members without the use of objectAtIndex |
Date: | Sat, 14 Apr 2018 14:39:57 +0200 |
This is mainly a question of if the compiler is able to do this newer ObjC2.0 syntax. clang does it nicely. Not sure if gcc can these days. Some older gcc versions where for sure not capable which was the reason for me to switch all to clang, given the new syntaxes saves you a lot of writing. The syntax id a = someobject[x] ; will translate into a call like this a =[someobject objectForKeyedSubscript:x]; The syntax someobject[x] = a; will translate into a call like this [someobject setObject:a for keyedSubscript:x]
Andreas Fink ------------------------------------------------------------------ Fink Telecom Services, Paradieshofstrasse 101, 4054 Basel, Switzerland Mobile: +41-78-6677333 Skype: andreasfink Jabber/XMPP: andreas@fink.org ICQ: 8239353 ------------------------------------------------------------------ |
[Prev in Thread] | Current Thread | [Next in Thread] |