diff --git a/ChangeLog b/ChangeLog index e3a591d01..cd17d9bbb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ 2005-11-17 fabien * Source/NSControl.m : Improved documentation + * Source/NSCustomImageRep.m : Improved documentation 2005-11-16 fabien diff --git a/Source/NSCustomImageRep.m b/Source/NSCustomImageRep.m index 5269705d8..079dfc56e 100644 --- a/Source/NSCustomImageRep.m +++ b/Source/NSCustomImageRep.m @@ -34,12 +34,18 @@ #include "AppKit/NSColor.h" #include "AppKit/DPSOperators.h" +/**

TODO : Desciption

+ */ @implementation NSCustomImageRep +/** Initializes a new NSCustomImageRep with .When a -draw message is recieved + it send aSelector message to the delegate anObject. + */ - (id) initWithDrawSelector: (SEL)aSelector delegate: (id)anObject { - [super init]; + if ( ! ( self = [super init] ) ) + return nil; /* WARNING: Retaining the delegate may or may not create a cyclic graph */ _delegate = RETAIN(anObject); @@ -53,12 +59,17 @@ [super dealloc]; } -// Identifying the Object +/**

Returns the NSCustomImageRep's delegate

+

See Also: -initWithDrawSelector:delegate:

+ */ - (id) delegate { return _delegate; } +/**

Returns the draw method selector sent to the delegate when + NSCustomImageRep recieved a -draw message

+ */ - (SEL) drawSelector { return _selector;