Re: Odd problem with NSSavePanel

2014-01-10 Thread Germán Arias
Thanks Fred, now works. Germán. On 2014-01-10 10:59:43 -0600 Fred Kiefer wrote: > Should be fixed now. Please give it a try. > > Fred > > On 10.01.2014 16:50, Fred Kiefer wrote: >> Hi German, >> >> I think I understand the problem now and it is only in NSSavePenl, not >> in your application.

Re: Odd problem with NSSavePanel

2014-01-10 Thread Fred Kiefer
Should be fixed now. Please give it a try. Fred On 10.01.2014 16:50, Fred Kiefer wrote: > Hi German, > > I think I understand the problem now and it is only in NSSavePenl, not > in your application. When the save panel has already been used it holds > a value in the instance variable _fullFileNa

Re: Odd problem with NSSavePanel

2014-01-10 Thread Fred Kiefer
Hi German, I think I understand the problem now and it is only in NSSavePenl, not in your application. When the save panel has already been used it holds a value in the instance variable _fullFileName. When a document without a name gets save the save panel method runModal gets called, which calls

Re: Odd problem with NSSavePanel

2014-01-09 Thread Fred Kiefer
Hi German, I did some investigations into this myself but didn't write about it, as I couldn't pin down the issue. I don't think the filename is empty when the code crashes. Rather it is filled with an already released value. You may check that in gbd, the variable has a value but dereferencing

Re: Odd problem with NSSavePanel

2014-01-08 Thread Germán Arias
Well, after some research I'm more confused. I'm not sure, but I think that _fullFileName and _allowedFileTypes are involved in this problem. At some moment these variables don't store anything. So, the method -filename don't return anything, and call -length over the returned value crashed the

Odd problem with NSSavePanel

2014-01-07 Thread Germán Arias
I'm having a problem with Gemas and NSSavePanel. You can reproduce it with these steps: * Launch Gemas. * Create a new file of type "Other" (Document -> New File -> Other). * Write something. * Save the file (don't add an extension). * Close the document. * Create a new file of type "Other". * Wr