• 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
Re: NSMutableDictionary Error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableDictionary Error


  • Subject: Re: NSMutableDictionary Error
  • From: Nicholas Riley <email@hidden>
  • Date: Sat, 18 Jan 2003 12:28:25 -0600
  • Mail-followup-to: Seth Willits <email@hidden>, email@hidden

On Sat, Jan 18, 2003 at 10:08:09AM -0800, Seth Willits wrote:
> When compiling, the compiler gives me the error that the
> NSMutableDictionary class doesn't respond to the setObject:forKey
> message. How can this be? It's clearly documented.
>
>
> NSMutableDictionary * attribs = [NSMutableDictionary dictionary];
>
> [attribs setObject:[NSFont fontWithName:@"Times" size:36]
> forkey:NSFontAttributeName];

Try 'forKey', not 'forkey'. Objective-C selectors are case-sensitive.

--
=Nicholas Riley <email@hidden> | <http://www.uiuc.edu/ph/www/njriley>
Pablo Research Group, Department of Computer Science and
Medical Scholars Program, University of Illinois at Urbana-Champaign
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >NSMutableDictionary Error (From: Seth Willits <email@hidden>)

  • Prev by Date: Re: standardWindowButtons
  • Next by Date: Re: NSMutableDictionary Error
  • Previous by thread: Re: NSMutableDictionary Error
  • Next by thread: Re: NSMutableDictionary Error
  • Index(es):
    • Date
    • Thread