O'Reilly logo

Cocoa in a Nutshell by James Duncan Davidson, Michael Beam

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Name

NSClassDescription — Mac OS X 10.0

Synopsis

This class provides an intelligent interface to Foundation’s key-value coding capabilities (see NSKeyValueCoding in Chapter 2). The main purpose of this class is to provide an interface for objects to determine the properties and characteristics of a class. NSClassDescription is an abstract class, upon which Foundation implements the concrete subclass NSScriptClassDescription.

image with no caption

@interface NSClassDescription : NSObject
                                  // Class Methods
   + (NSClassDescription *)classDescriptionForClass:(Class)aClass;
   + (void)invalidateClassDescriptionCache;
   + (void)registerClassDescription:(NSClassDescription *)description 
                                 forClass:(Class)aClass;
                                  // Instance Methods
   - (NSArray *)attributeKeys;
   - (NSArray *)attributeKeys;
   - (NSClassDescription *)classDescription;
   - (NSString *)inverseForRelationshipKey:(NSString *)relationshipKey;
   - (NSString *)inverseForRelationshipKey:(NSString *)relationshipKey;
   - (NSArray *)toManyRelationshipKeys;
   - (NSArray *)toManyRelationshipKeys;
   - (NSArray *)toOneRelationshipKeys;
   - (NSArray *)toOneRelationshipKeys;
                                 // Notifications
                                 NSClassDescriptionNeededForClassNotification;

Subclasses

NSScriptClassDescription

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required