Added verticalMargin accessor to CPCollectionView.

This commit is contained in:
nciagra
2009-01-29 20:26:22 -08:00
committed by Ross Boucher
parent 9295e2436d
commit 66bbfbbb3c
+14
View File
@@ -559,6 +559,11 @@
// Cappuccino Additions
/*!
Sets the collection view's vertical spacing between elements.
@param aVerticalMargin the number of pixels to place between elements
*/
- (void)setVerticalMargin:(float)aVerticalMargin
{
if (_verticalMargin == aVerticalMargin)
@@ -569,6 +574,15 @@
[self tile];
}
/*!
Gets the collection view's current vertical spacing between elements.
*/
- (float)verticalMargin
{
return _verticalMargin;
}
/*!
Sets the collection view's delegate
@param aDelegate the new delegate