Project

General

Profile

Actions

Bug #995

closed

Can't use Objective-C string literals as NSDictionary subscript key

Added by Dmitry M. over 9 years ago. Updated about 9 years ago.

Status:
Completed
Priority:
High
Assignee:
Category:
cocotron
Target version:
Start date:
07/07/2015
Due date:
% Done:

100%

Estimated time:
CPU Architecture:
Host OS:
Toolchain:
Android version:
CrystaX NDK Version:

Description


@property NSMutableDictionary *op;
.....
if (mem.op[@"KEY"] != NULL)
......
error: array subscript is not an integer
    if (mem.op[@"KEY"] != NULL)
              ^~~~~~~~~~~~~~~

http://stackoverflow.com/questions/12102689/obj-c-literals-getting-array-subscript-is-not-an-integer-on-an-nsdictionary-q
http://clang.llvm.org/docs/ObjectiveCLiterals.html

Actions #1

Updated by Dmitry M. over 9 years ago

  • Status changed from Open to In Progress
Actions #2

Updated by Dmitry M. over 9 years ago

  • Priority changed from Normal to High
Actions #3

Updated by Dmitry M. about 9 years ago

  • Status changed from In Progress to Completed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF