Hi, I've the following code:
NSDictionary *dict=[[NSDictionary alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"Indexes" ofType:@"plist"]]; //This is actually a global initialized in +initialize. NSString *key=[NSString stringWithFormat:@"%...@.%@",page,property]; NSLog(@"%@",key); NSLog(@"%@",[[dict valueForKey:key] description]); NSLog(@"%@",[[[dict valueForKey:page] valueForKey:property] description]); The result from the code is: page1.fwRevCode (null) 6 The first and last are exactly what I expect. But why can't the dictionary find the value with the full key? Thanks in advance. Regards, Remco Poelstra_______________________________________________ Cocoa-dev mailing list ([email protected]) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
