Re: NSMutableDictionary Error
Re: NSMutableDictionary Error
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.