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 tellfileor


From: Richard Frith-Macdonald
Subject: Re: [Bug #3292] NSOpenPanel shouldn't use file extension to tellfileor directory
Date: Tue, 22 Apr 2003 09:42:49 +0100


On Tuesday, April 22, 2003, at 09:26  am, Jeff Teunissen wrote:

nobody@savannah.gnu.org wrote (on behalf of Yen-Ju Chen):
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 behavior is correct, unless we want to define a difference between a
file and a file package (i.e. a directory with a known extension).

A Filename.rtfd directory is considered a file, because various apps (like
Ink and TextEdit) can open them as files. Likewise for filename.prefs
directories and the Preferences application.

I agree ... the current behavior is correct.

However, IIRC the NeXTstep workspace had a preferences setting for
'unix expert mode' and when in that mode, you had the option to
'open as directory' so that you could step into a bundle. It might be worth
supporting something similar.  I can't remember if that worked at the
level of the OpenPanel though ... it may have only been a workspace
application menu option.





reply via email to

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