Skip to content

Conversation

@Iomegan
Copy link
Contributor

@Iomegan Iomegan commented Jan 6, 2026

Thanks for your work.

I've added a small fix that makes it possible to use the drop feature of NSPathControl. You can take a file or folder and drop it on the control to change the URL. I've also added some optional parameters like allowedTypes and placeholderString.

Cheers

…the NSPathControl's url instead of the clickedPathItem URL
…itialization. allowedTypes can be used to limit the PathControl to folders via UTType.folder.identifier or just image files and so on.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

allowedTypes may should be based on UTType in the future and map to allowedTypes via UTType.identifier. UTType requires macOS 11.

@Tunous Tunous merged commit 28e46c5 into Tunous:master Jan 7, 2026
@Tunous
Copy link
Owner

Tunous commented Jan 7, 2026

Thank you. Merged and will release shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants