Skip to content

Commit a3b6f6e

Browse files
committed
Fixed minor bug in example project
1 parent df5b556 commit a3b6f6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Examples/Movie Timecode/Movie Timecode/Support/URL Extensions.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ extension URL {
1616
/// Has no effect on non-macOS platforms.
1717
func openFile() throws {
1818
#if os(macOS)
19-
if !NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: path()) {
19+
if !NSWorkspace.shared.selectFile(nil, inFileViewerRootedAtPath: path(percentEncoded: false)) {
2020
throw CocoaError(.fileNoSuchFile)
2121
}
2222
#endif
@@ -26,7 +26,7 @@ extension URL {
2626
/// Has no effect on non-macOS platforms.
2727
func revealInFinder() throws {
2828
#if os(macOS)
29-
if !NSWorkspace.shared.selectFile(path(), inFileViewerRootedAtPath: "/") {
29+
if !NSWorkspace.shared.selectFile(path(percentEncoded: false), inFileViewerRootedAtPath: "/") {
3030
throw CocoaError(.fileNoSuchFile)
3131
}
3232
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy