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:
>      kUnitsKey, [NSNumber numberWithDouble:units],
>      kValueKey, [NSNumber numberWithDouble:value],
>      kIsMetricKey, [NSNumber numberWithBool:isMetric],
>      nil];

You've switch the order of objects & keys in the arguments.

-- 
Scott Ribe
scott_r...@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice





_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to