[macruby-changes] [620] MacRuby/trunk/lib/hotcocoa/mappings/collection_view.rb
source_changes at macosforge.org
source_changes at macosforge.org
Wed Sep 24 21:30:37 PDT 2008
Revision: 620
http://trac.macosforge.org/projects/ruby/changeset/620
Author: rich at infoether.com
Date: 2008-09-24 21:30:37 -0700 (Wed, 24 Sep 2008)
Log Message:
-----------
add row and columns helpers
Modified Paths:
--------------
MacRuby/trunk/lib/hotcocoa/mappings/collection_view.rb
Modified: MacRuby/trunk/lib/hotcocoa/mappings/collection_view.rb
===================================================================
--- MacRuby/trunk/lib/hotcocoa/mappings/collection_view.rb 2008-09-25 01:37:23 UTC (rev 619)
+++ MacRuby/trunk/lib/hotcocoa/mappings/collection_view.rb 2008-09-25 04:30:37 UTC (rev 620)
@@ -27,6 +27,22 @@
setItemPrototype(item)
end
+ def rows=(value)
+ setMaxNumberOfRows(value)
+ end
+
+ def rows
+ maxNumberOfRows
+ end
+
+ def columns=(value)
+ setMaxNumberOfColumns(value)
+ end
+
+ def columns
+ maxNumberOfColumns
+ end
+
end
end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080924/abd1704f/attachment.html
More information about the macruby-changes
mailing list