From: Karl-Heinz W. <kh...@wi...> - 2005-08-25 13:38:00
|
Hi. I'm totaly new in Ruby/OSX and also not the expert in programming ruby. I'm working through the example on http://www.macdevcenter.com/pub/a/mac/2004/10/12/cocoa.html?page=1 This part works in the source I've downloaded from the page below but not in the code I've written. def addFile(sender) oPanel = NSOpenPanel.openPanel oPanel.setAllowsMultipleSelection(true) buttonClicked = oPanel.runModal if buttonClicked == NSOKButton files = oPanel.filenames count = files.count for i in 0..count - 1 # puts files.objectAtIndex( i ) @files.push( files.objectAtIndex(i)) end @fileTableView.reloadData end end Can someone give me a hint what I should looking for. Maybe a flag in the .nib part of the application. Sorry if this mail is OT but where else could I ask for. Thanks and regards Karl-Heinz |