• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
setObjectForKey in NSMutableDictionary in Java
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

setObjectForKey in NSMutableDictionary in Java


  • Subject: setObjectForKey in NSMutableDictionary in Java
  • From: John Spicer <email@hidden>
  • Date: Thu, 30 Sep 2004 14:15:40 -0500

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:

<x-tad-smaller>Classes/theController.java:324: cannot resolve symbol
symbol : method setObjectForKey (java.lang.Object,java.lang.Object)


the objectForKey method works fine:


</x-tad-smaller>
Integer sTag = (Integer) theDictionary.objectForKey("theKey");
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: setObjectForKey in NSMutableDictionary in Java
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: OpenGL vs QuickTime for slideshow transitions
  • Next by Date: Re: Cocoa Application Architecture - Think More About AppleEvents and OSA?
  • Previous by thread: Re: OpenGL vs QuickTime for slideshow transitions
  • Next by thread: Re: setObjectForKey in NSMutableDictionary in Java
  • Index(es):
    • Date
    • Thread