| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Hello,
I think the api implies they all work and will have differing outcomes depending on what you would like to 'sum' or 'count' etc. e.g., Consider the keypath: 'company.people.accounts.totalLiability'.
If I want to know how much is owed in total:
Number total = ( Number )company.valueForKeyPath ( "@sum.people.accounts.totalLiability" );
I am curious if you have actually used this?
Obviously not enough! Bummer...
I meant company.valueForKeyPath ( "email@hiddenLiability" ) - but that's still wrong. You can only provide toOne keyPaths after @sum it seems (i.e., "email@hiddenLiability" ) which will succeed (having now tested).
John _______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/email@hidden
| References: | |
| >Proper place for functions in KVC paths? (From: "John Huss" <email@hidden>) | |
| >Re: Proper place for functions in KVC paths? (From: Chuck Hill <email@hidden>) | |
| >Re: Proper place for functions in KVC paths? (From: Lachlan Deck <email@hidden>) | |
| >Re: Proper place for functions in KVC paths? (From: Chuck Hill <email@hidden>) | |
| >Re: Proper place for functions in KVC paths? (From: Lachlan Deck <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.