Skip navigation.
 
mlsetObjectForKey in NSMutableDictionary in Java
FROM : John Spicer
DATE : Thu Sep 30 21:15:40 2004

given an NSDictionary theDictionary;
and doing this:

       Object a = new Object ();
       Object b = new Object ();
       theDictionary.setObjectForKey(a, b);

why does the java compiler give this error:

Classes/theController.java:324: cannot resolve symbol
symbol  : method setObjectForKey (java.lang.Object,java.lang.Object)


the objectForKey method works fine:


Integer sTag = (Integer) theDictionary.objectForKey("theKey");

Related mailsAuthorDate
mlsetObjectForKey in NSMutableDictionary in Java John Spicer Sep 30, 21:15
mlRe: setObjectForKey in NSMutableDictionary in Java Finlay Dobbie Sep 30, 21:29