[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
- Re: Methods +readable/writableTypes, (continued)
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/11
- Re: Methods +readable/writableTypes, Fred Kiefer, 2014/02/11
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/11
- Re: Methods +readable/writableTypes, Fred Kiefer, 2014/02/11
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/12
- Re: Methods +readable/writableTypes, Fred Kiefer, 2014/02/12
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/13
- Re: Methods +readable/writableTypes, Fred Kiefer, 2014/02/15
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/17
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/24
- Re: Methods +readable/writableTypes,
Doug Simons <=
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/26
- Re: Methods +readable/writableTypes, Doug Simons, 2014/02/25
- Re: Methods +readable/writableTypes, Germán Arias, 2014/02/26