gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Methods +readable/writableTypes


From: Germán Arias
Subject: Re: Methods +readable/writableTypes
Date: Mon, 24 Feb 2014 13:39:45 -0600
User-agent: GNUMail (Version 1.2.1)

On 2014-02-15 12:43:43 -0600 Fred Kiefer <address@hidden> wrote:

> On 13.02.2014 06:00, Germán Arias wrote:
[...]
> 
> Sorry, only now do I think I actually understand this issue. In the
> WinNSSavePanel you want to replace the accessory view with values for
> the lpstrFilter. But in the method on WinNSSavePanel you no longer have
> access to the NSDocument or the save operation and need to get these
> values in some other way.
> Now would it be an option to access the _spa_button of the accessory
> view from the WinNSSavePanel? We could give that button a specific tag
> and your code would request the view with that tag? Not very beautiful
> code, but an option if your attempts to solve it otherwise fail.

I solve the problem using _openableFileExtensions and 
writableTypesForSaveOperation:. The title of the panel let me know the type of 
save operation. Now I will add a little hack in ProjectCenter to allow it use 
native panels.

> 
> In one of your mail you wrote: "However, if I remember correctly, NSLog
> don't works in a theme (almost on Windows)."
> As far as I remember the output from NSLog ends up in the Event viewer
> of Windows. And if you run with a debugger it should be outputted there.

Yes, this works with gdb.

Germán.

> 
> Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]