Closed Bug 113774 Opened 23 years ago Closed 23 years ago

[Mach] file picker doesn't work

Categories

(Core :: XUL, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 110372

People

(Reporter: dbaron, Assigned: ccarlen)

Details

Attachments

(1 file)

In the mach-o build, the file picker doesn't work. A file picker to open doesn't do anything, and a file picker to save crashes. I have a patch to improve this situation a bit, but not fix it entirely -- it gets a file picker to open (e.g., for a file input on the bugzilla create attachment) to work, and it gets a file picker to save to no-op. The basic problem is that we're using the unix local file implementation so we can't initialize an nsILocalFile from an FSSpec. I've heard talk of implementing nsILocalFileMac for the mach-o build. Until then, this patch might be useful, unless someone has a better idea.
This patch gets things half working (open works, save no-ops). Does the conversion to a POSIX-style path still allows a file to be uniquely identified, on OS X? I don't see a way to get an path from an FSSpec for a file that doesn't exist, so I don't see a way to get save working (except for overwriting files, which works with this patch).
i think conrad wanted to work on the local file rewrite.
Assignee: pinkerton → ccarlen
*** This bug has been marked as a duplicate of 110372 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified duplicate though the patch should probably go over to the other bug
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: