views:

14

answers:

1
NSNumber *salaryOverhead = [anEmployee valueForKeyPath:@"[email protected]"];
+1  A: 

It looks like a key path so it should work. What's the ampersand for?

Edit:

That was a strange brain blank. The ampersand is of course the @sum collections operator of the key-value programming protocol.

TechZen
Do you mean the @sum in the key path? I didn't get that by 100% yet, but I believe it's a reference to a special function which is invoked on an salary array to gather the total amount of salary. Probably an array with 12 salaries per year so you can calculate how much the total salary is. Not sure...would be happy if someone can give better explanation.
dontWatchMyProfile
See my edit. With the exception of binding, there is very little in Core Data on the make that you can't use on iOS. I think there are some value transformers that are not available. 99% of the stuff you read in the Core Data docs will work on iOS.
TechZen