From: Jay Freeman (saurik) Date: Mon, 4 Jun 2012 04:27:57 +0000 (-0700) Subject: Add some syntax todo items from Clang documentation. X-Git-Tag: v0.9.455~5 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/eef35e84d953025698bc46ec73774ab4de5c0647 Add some syntax todo items from Clang documentation. --- diff --git a/todo.txt b/todo.txt index 1bc7eb2..dd16598 100644 --- a/todo.txt +++ b/todo.txt @@ -65,3 +65,17 @@ should WebUndefined be @undefined? if something is a function, it should be output differently evaluate usages of CYTry in ObjectiveC/Library for CYObjectiveTry verify name targets of "incorrect number of arguments to" +maybe support __objc_{yes,no} intrinisic primitives + +support new objective-c subscript notation: + id key = ...; + id value = object[key]; + -> id value = [object objectForKeyedSubscript:key]; + object[key] = newValue; + -> [object setObject:newValue forKeyedSubscript:key]; +and: + NSUInteger idx = ...; + id value = object[idx]; + -> id value = [object objectAtIndexedSubscript:idx]; + object[idx] = newValue; + -> [object setObject:newValue atIndexedSubscript:idx];