gnustep-dev
[Top][All Lists]
Advanced

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

Re: Methods +readable/writableTypes


From: Doug Simons
Subject: Re: Methods +readable/writableTypes
Date: Tue, 25 Feb 2014 14:54:15 -0700

Hello Germán,

On Feb 24, 2014, at 12:39 PM, Germán Arias wrote:

> 
> 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.

Unfortunately, your changes broke the basic behavior when an array of fileTypes 
is passed in to the runModalForDirectory:file:types:relativeToWindow: method of 
WinNSOpenPanel. Our application calls this method directly, passing a list of 
image file extensions (tiff, png, etc.) in places where we want the user to be 
able to select an image file. These are not registered as document types for 
our app (we also have some of those -- opening them works okay with your 
changes).

I've committed some changes that fix the problem for our cases, without 
removing your code. When no fileTypes array is passed in, it should still be 
using your code to pick up the document types from the NSDocumentController. So 
hopefully this will still work for you, although I don't fully understand your 
scenario.

Regards,

Doug




reply via email to

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