Re: Binding query variables (EOF Fetch Spec Qualifier) under IB
Ricardo Strausz <[email protected]> Fri, 4 Mar 2005 11:15:30 -0600
| Newsgroups | gmane.comp.web.webobjects.eof |
|---|---|
| Message-ID | <[email protected]> |
I forgot to say... you may replace the third line of code below for bindings = [NSClassFromString(@"com.webobjects.foundation.NSMutableDictionary) new]; this will give you the correct instance/class. Dino On Mar 1, 2005, at 9:05 PM, Ricardo Strausz wrote: >> And the code: >> >> fetch = [[displayGroup dataSource] fetchSpecification]; >> qual = [fetch qualifier]; >> bindings = [NSMutableDictionary new]; >> [bindings takeStoredValue: @"Baka" forKey: @"name"]; >> >> And >> >> q2 = [qual qualifierWithBindings: bindings : NO]; >> >> Makes: >> >> 2005-02-25 11:52:26.206 Baka[808] >> com/webobjects/foundation/NSKeyValueCoding$UnknownKeyException: >> <com.apple.cocoa.foundation.NSMutableDictionary 0xbf47df> >> valueForKey(): >> lookup of unknown key: 'name'. >> This class does not have an instance variable of the name name or >> _name, nor >> a method of the name name, _name, getName, or _getName >>