Changeset 729 for lang/ruby/Chemr

Show
Ignore:
Timestamp:
10/26/07 09:06:43 (6 years ago)
Author:
cho45
Message:

lang/ruby/Chemr/CHMDocument.rb:

おちないようにするための変更
http://subtech.g.hatena.ne.jp/cho45/20071025#c1193355031
かみすぎる

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/Chemr/CHMDocument.rb

    r717 r729  
    104104 
    105105        def outlineView_objectValueForTableColumn_byItem(ov, column, item) 
    106                 if item 
    107                         item[:name] 
    108                 else 
    109                         "" 
    110                 end 
     106                item[:name] 
    111107        end 
    112108 
     
    150146                if item.label == "Tree" 
    151147                        Thread.start do 
    152                                 @topics = @chm.topics 
    153                                 # おちやすい 
     148                                # http://subtech.g.hatena.ne.jp/cho45/20071025#c1193355031 
     149                                #  > OutlineView は DataSource に、ノードの値が変わらない限り、 
     150                                #  > 同じ NSString を返すように期待してるようです。 
     151                                # NSDictionary で保持するように 
     152                                @topics = NSDictionary.dictionaryWithDictionary(@chm.topics) 
    154153                                @tree.setDataSource(self) 
    155154                                @tree.reloadData