Re: How can I accept directory drops to my app icon?
Re: How can I accept directory drops to my app icon?
- Subject: Re: How can I accept directory drops to my app icon?
- From: Rainer Brockerhoff <email@hidden>
- Date: Sun, 18 Jan 2004 23:08:00 -0200
At 14:44 -0800 18/01/2004, email@hidden wrote:
>
From: Marc Liyanage <email@hidden>
>
Date: Sun, 18 Jan 2004 23:34:53 +0100
>
>
I would like to accept directories with arbitrary names dropped onto my
>
application icon, in the Dock and elsewhere.
>
>
I tried many things, especially in the Info.plist file, but no chance.
>
The icon never highlights in the dock. I can force it by holding down
>
Cmd-Option, and then the open method in my app delegate gets invoked,
>
but that is of course not good enough for end-users.
If you want only arbitrary folders, specifying 'fold' as the type in the .plist's CFBundleTypeOSTypes array should do it. (If you want everything - any file, folder or volume - to be accepted, specify '****' instead.)
In both cases, also specify "*" as the extension in the CFBundleTypeExtensions array, and NSFilenamesPboardType as the CFBundleTypename.
HTH,
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
Weblog:
http://www.brockerhoff.net/bb/viewtopic.php
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.