Revision: 497 http://trac.macosforge.org/projects/ruby/changeset/497 Author: rich@infoether.com Date: 2008-08-27 14:55:20 -0700 (Wed, 27 Aug 2008) Log Message: ----------- rename Modified Paths: -------------- MacRuby/trunk/sample-macruby/HotCocoa/collection_view.rb Modified: MacRuby/trunk/sample-macruby/HotCocoa/collection_view.rb =================================================================== --- MacRuby/trunk/sample-macruby/HotCocoa/collection_view.rb 2008-08-27 21:20:22 UTC (rev 496) +++ MacRuby/trunk/sample-macruby/HotCocoa/collection_view.rb 2008-08-27 21:55:20 UTC (rev 497) @@ -20,16 +20,16 @@ view end - attr_reader :image + attr_reader :icon def collection_item=(item) - image.bind "value", toObject:item, withKeyPath:"representedObject.image", options:nil - image.bind "toolTip", toObject:item, withKeyPath:"representedObject.name", options:nil + icon.bind "value", toObject:item, withKeyPath:"representedObject.image", options:nil + icon.bind "toolTip", toObject:item, withKeyPath:"representedObject.name", options:nil end def create_subviews - @image = image_view :frame => [0,0,60,60] - addSubview(image) + @icon = image_view :frame => [0,0,60,60] + addSubview(icon) end def hitTest(point) @@ -44,7 +44,7 @@ :selects_inserted => false, :rearrange_automatically => true, :sort_by => {:name => :ascending} - + application :name => "Collection View" do |app| window :frame => [100, 100, 500, 500], :title => "HotCocoa!" do |win| win << scroll_view(:layout => {:expand => [:width, :height]}) do |scroll|