Project

General

Profile

Bug #995

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

Added by Dmitry Moskalchuk over 4 years ago. Updated about 4 years ago.

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

100%

Estimated time:
CPU Architecture:
Host OS:
Toolchain:
Android version:
CrystaX 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

History

#1

Updated by Dmitry Moskalchuk over 4 years ago

  • Status changed from Open to In Progress
#2

Updated by Dmitry Moskalchuk over 4 years ago

  • Priority changed from Normal to High
#3

Updated by Dmitry Moskalchuk about 4 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF