bug-gnustep
[Top][All Lists]
Advanced

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

Re: [Bug #3292] NSOpenPanel shouldn't use file extension to tell Re: [Bu


From: Nicolas Roard
Subject: Re: [Bug #3292] NSOpenPanel shouldn't use file extension to tell Re: [Bug #3292] NSOpenPanel shouldn't use file extension to tell
Date: Tue, 22 Apr 2003 02:36:45 +0100

On 2003-04-21 15:37:23 +0000 nobody@savannah.gnu.org wrote:

Original Submission:  If a directory named MyDirectory.txt/, NSOpenPanel in 
Ink.app will think it is a file because the file extension is .txt.
If I add a new extension,"" (empty string), in InkInfo.plist,
all the directories will become files (without a small triangle behind) in 
NSOpenPanel.
I think NSOpenPanel should not depend on the file extension to distinguish 
files or directories, but it may reduce the speed.

The problem is that bundles are, in fact, directories -- yet they must
be treated as files by NSOpenPanel. NSOpenPanel don't depends on the
file extension to distinguish files and directories, but it use extensions
to distinguish bundles and "normal" directories ... it's not a bug, it's a
feature :-)
But, a test to eventually don't take an empty string as a valid extension
is perhaps a safe thing to add ...
Adding a "open the bundle" button in NSOpenPanel is perhaps another
idea.

--
Nicolas Roard





reply via email to

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