Re: Dictionary not returning objects

2012-04-15 Thread Dave Zarzycki
On Apr 15, 2012, at 3:46 PM, Markus Spoettl wrote: > On 4/15/12 8:06 PM, Scott Ribe wrote: >> On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote: >> >>> I have an NSDictionary that contains, well, objects. When I call >>> -objectForKey: I get nil for keys that are definitely in there. >>> >>>

Re: Dictionary not returning objects

2012-04-15 Thread Markus Spoettl
On 4/15/12 8:06 PM, Scott Ribe wrote: On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote: I have an NSDictionary that contains, well, objects. When I call -objectForKey: I get nil for keys that are definitely in there. The dictionary gets constructed like this: [NSDictionary dictionaryWith

Re: Dictionary not returning objects

2012-04-15 Thread Seth Willits
On Apr 15, 2012, at 11:01 AM, Markus Spoettl wrote: > [NSDictionary dictionaryWithObjectsAndKeys: > kUnitsKey, [NSNumber numberWithDouble:units], > kValueKey, [NSNumber numberWithDouble:value], > kIsMetricKey, [NSNumber numberWithBool:isMetric], > nil]; You have key and obje

Re: Dictionary not returning objects

2012-04-15 Thread Scott Ribe
On Apr 15, 2012, at 12:01 PM, Markus Spoettl wrote: > I have an NSDictionary that contains, well, objects. When I call > -objectForKey: I get nil for keys that are definitely in there. > > The dictionary gets constructed like this: > > [NSDictionary dictionaryWithObjectsAndKeys: > kUnitsK

Dictionary not returning objects

2012-04-15 Thread Markus Spoettl
Hello, I seem to be having an acute case of brain blockage, I can't figure out what I'm doing wrong with a simple thing I've done a thousand times. I have an NSDictionary that contains, well, objects. When I call -objectForKey: I get nil for keys that are definitely in there. The dictiona