Up
Authors
- Richard Frith-Macdonald (
rfm@gnu.org
)
-
Version: 27578
Date: 2009-01-12 12:48:46 +0000 (Mon, 12 Jan 2009)
Copyright: (C) 2000 Free Software Foundation, Inc.
- Declared in:
- Foundation/NSClassDescription.h
Availability: MacOS-X 10.0.0
Each instance of this class provides descriptive
information for an Objective C class. This is
used for key-value coding, a framework used in Cocoa for
scripting with Objective-C objects. Scripting is
available in GNUstep using Guile, however that
implementation does not make use of class
descriptions. Therefore the primary purpose of
this class is to smooth the process of porting between
GNUstep and other OpenStep-derived systems.
Method summary
+ (
NSClassDescription*)
classDescriptionForClass: (Class)aClass;
Availability: MacOS-X 10.0.0
Returns the class description for aClass
. If there is no such description available, sends an
NSClassDescriptionNeededForClassNotification
(with aClass as its object) so that
objects providing class descriptions can register
one, and tries again to find one.
Returns
nil
if there is no description found.
Handles locking to ensure thread safety and
ensures that the returned object will not be
destroyed by other threads.
+ (void)
invalidateClassDescriptionCache;
Availability: MacOS-X 10.0.0
Invalidates the cache of class descriptions so
the new descriptions will be fetched as required and
begin to refill the cache. You need this only if you
suspect that a class description should have
changed.
+ (void)
registerClassDescription: (
NSClassDescription*)aDescription
forClass: (Class)aClass;
Availability: MacOS-X 10.0.0
Registers aDescription for
aClass... placing it in the cache and
replacing any previous version.
- (
NSArray*)
attributeKeys;
Availability: MacOS-X 10.0.0
Subclasses
should override this method.
Returns the attribute keys - default implementation
returns nil
.
- (
NSString*)
inverseForRelationshipKey: (
NSString*)aKey;
Availability: MacOS-X 10.0.0
Subclasses
should override this method.
Returns the inverse relationship keys - default
implementation returns nil
.
- (
NSArray*)
toManyRelationshipKeys;
Availability: MacOS-X 10.0.0
Subclasses
should override this method.
Returns the to many relationship keys - default
implementation returns nil
.
- (
NSArray*)
toOneRelationshipKeys;
Availability: MacOS-X 10.0.0
Subclasses
should override this method.
Returns the to one relationship keys - default
implementation returns nil
.
- Declared in:
- Foundation/NSClassDescription.h
Availability: MacOS-X 10.0.0
Description forthcoming.
Method summary
- (
NSArray*)
attributeKeys;
Availability: MacOS-X 10.0.0
Returns the attribute keys supplied by the
NSClassDescription
object for the receivers class.
- (
NSString*)
inverseForRelationshipKey: (
NSString*)aKey;
Availability: MacOS-X 10.0.0
Returns the inverse relationship keys supplied by
the
NSClassDescription
object
for the receivers class.
- (
NSArray*)
toManyRelationshipKeys;
Availability: MacOS-X 10.0.0
Returns the to many relationship keys supplied by
the
NSClassDescription
object
for the receivers class.
- (
NSArray*)
toOneRelationshipKeys;
Availability: MacOS-X 10.0.0
Returns the to one relationship keys supplied by
the
NSClassDescription
object
for the receivers class.
Up