• 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
NSDictionary error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSDictionary error


  • Subject: NSDictionary error
  • From: Jerrod Fowkes <email@hidden>
  • Date: Thu, 13 Apr 2006 12:07:26 -0700 (PDT)

Hi, I have been pounding away at this for awhile. I am fairly a newbie so bare with me:

NSString* value;
value = [[NSString alloc] initWithString: [result objectForKey: (NSString*) kWSMethodInvocationResult]];

and I am getting this error:

-[NSCFDictionart length]:selector not recognized

[result objectForKey* returns a NSCFDictionary...which I am assuming to be a pointer to a NSDictionary Object. Well I would think that initWithString would be able to take that address and then copy the correct data out of the dictionary for the key kWSMethod*. What am I doing wrong here?


---------------------------------
New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.
 _______________________________________________
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: NSDictionary error
      • From: Alan Hart <email@hidden>
  • Prev by Date: Re: Is this program open?
  • Next by Date: Re: Is this program open?
  • Previous by thread: Re: equivalent of "self" for willChangeValueForKey:/didChangeValueForKey:
  • Next by thread: Re: NSDictionary error
  • Index(es):
    • Date
    • Thread