Annotation of Examples/EnterpriseObjects/MasteringDetails/EOFExtensions.subproj/ValueForKey.m, revision 1.1

1.1     ! root        1: /* ValueForKey.m created by cfeder on Mon 07-Nov-1994 */
        !             2: 
        !             3: #import "ValueForKey.h"
        !             4: 
        !             5: @implementation NSObject (valueForKey)
        !             6: - valueForKey:(NSString *)key
        !             7: {
        !             8:     return [[self valuesForKeys:[NSArray arrayWithObject:key]] objectForKey:key];
        !             9: }
        !            10: 
        !            11: - (void)takeValue:value forKey:(NSString *)key
        !            12: {
        !            13:     [self takeValuesFromDictionary:[NSDictionary dictionaryWithObjects:&value forKeys:&key count:1]];
        !            14: }
        !            15: @end

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.