Browse Source

Improved class comment for MKImageView

Nicolas Petton 11 years ago
parent
commit
af475220d3
2 changed files with 4 additions and 2 deletions
  1. 1 1
      js/Moka-Views.js
  2. 3 1
      st/Moka-Views.st

+ 1 - 1
js/Moka-Views.js

@@ -492,7 +492,7 @@ smalltalk.MKSwitchView);
 
 
 smalltalk.addClass('MKImageView', smalltalk.MKLayoutView, ['imagePath', 'alternativeContents'], 'Moka-Views');
-smalltalk.MKImageView.comment="I display an image.\x0a\x0a##API\x0a\x0aCreate instances using `MKImageView class>>imagePath:`.";
+smalltalk.MKImageView.comment="I display an image. \x0a\x0aNote that several views support adding icons using either `#icon:` or `#iconBlock:`.\x0a\x0a##API\x0a\x0aCreate instances using `MKImageView class>>imagePath:`.";
 smalltalk.addMethod(
 smalltalk.method({
 selector: "alternativeContents",

+ 3 - 1
st/Moka-Views.st

@@ -173,7 +173,9 @@ MKLayoutView subclass: #MKImageView
 	instanceVariableNames: 'imagePath alternativeContents'
 	package: 'Moka-Views'!
 !MKImageView commentStamp!
-I display an image.
+I display an image. 
+
+Note that several views support adding icons using either `#icon:` or `#iconBlock:`.
 
 ##API