From: David Vallner Date: 2006-02-21T11:46:28+09:00 Subject: Re: can't convert String into Integer Dňa Pondelok 20 Február 2006 18:43 Une bévue napísal: > i have a hash like that : > > @label_list={} > > with only one key for the time being : > > @label_list["BookmarksBar"]=[] > > then, the value is an Array populated like that : > > @label_list["BookmarksBar"] << folder.attributes["label"].gsub(/"(.*)"/, > '\1') > > then, i want to use this hash-value by : > > if !@label_list["BookmarksBar"].include?(label_) # <= line 143 > > > this works a number of times (it's within an each loop) until label_ = > "files" where i get : > > /Users/yvon/work/RubyCocoa/BookmarksMerge/build/Development/BookmarksMer > ge.app/Contents/Resources/Controller.rb:143:in `NSApplicationMain': > NSApplicationMain - RBException_TypeError - can't convert String into > Integer (OSX::OCException) > > > label_ are always strings... > > i don't understand )) I can't reproduce this. Can you make a simple full code example where this happens? Otherwise, I'd blame a bug someplace else and a mysterious off-by-one line count mishap. David Vallner