|
From: Yvon T. <tho...@fr...> - 2006-02-20 18:27:37
|
i think this has nothing to do with RubyCocoa rather with ruby only,
but in case of, because i'm stuck by this strange prob.
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 (above 20 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 ))
|