Drag & Drop on Dock icon in Cocoa - Messes up file associations
Asked Answered
A

1

7

I've implemented a drag-and-drop function in my application. The app let's you open .kext files.

I've used -(void)application:openFiles: as well as having set the Document Types: Document Types setup

All works well, and my app can detect when the kext is dropped. However, when a Kext is dropped, all kexts on my Mac change icon to Folder icon! I guess it has something to do with my app messing with the file associations.

Is there any way around this?

Assessor answered 25/12, 2011 at 15:27 Comment(0)
A
0

Wow, the answer was simple: Tick the Document is distributed as Bundle box in the Document Types area, and the Icon doesn't change.

Assessor answered 22/4, 2017 at 18:26 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.