I vaguely remember a huh? like you report. I don't have OS X anymore so
I can't test. On Linux I use a construct like
> button "Save As..." do
> fn = ask_save_file
> if fn and fn.length > 0
> #puts "Setting new file #{fn}"
> $secFile.fn = fn
> $secFile.save
> end
> end
>
I wouldn't use that fn.length check unless it hadn't bit me. Opening files
with no name?
None of that probably helps you.
On Tue, 2009-06-30 at 01:03 -0700, Christopher Small wrote:
> Actually, I was wrong earlier - the ask_open_file seems to be working
> properly, it's just the ask_save file that is not working.
>
> Shoes.app do
> fn = ask_save_file
> debug fn.class
> end
>
> Running this and entering in test.txt for the filename sends NilClass
> to the console. ?????? - What the heck? Am I really the only person
> somehow having this issue? Any ideas?
>
> Chris
>
>
>
> On Sun, Jun 28, 2009 at 11:09 AM, Christopher Small
> <[email protected]> wrote:
> Hi there. Running Leopard and having trouble with the
> ask_save_file and ask_open_file. The windows pop up and
> everything, but trying to capture the output is not working
> correctly. If I do
>
> fn = ask_open_file
> text = open( fn )
>
> fn gets set to nil and the open method does not work properly.
> Has anyone else had this problem?
>
> Chris
>