Skip navigation.
 
mlNSMutableDictionary Error
FROM : Seth Willits
DATE : Sat Jan 18 19:08:09 2003

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];

   PB 2.1 & OS X 10.2.3

Seth Willits
------------------------------------------------------------------------
---
President and Head Developer of Freak Software - http://www.freaksw.com
Q&A Columnist for REALbasic Developer Magazine - 
http://www.rbdeveloper.com

"Read the book! Be patient! All success comes from acquiring knowledge 
and experience."
        -- Seth Willits
------------------------------------------------------------------------
---
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

Related mailsAuthorDate
mlNSMutableDictionary Error Seth Willits Jan 18, 19:08
mlRe: NSMutableDictionary Error mw Jan 18, 19:22
mlRe: NSMutableDictionary Error Nicholas Riley Jan 18, 19:28
mlRe: NSMutableDictionary Error Seth Willits Jan 18, 19:30