 |
 |
how do I accept all doc types?
|
 |
|
 |
|
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status:
Offline
|
|
I've noticed that carbon apps like GraphicConverter and HexEdit can accept drag operations from all types of documents and even folders. While cocoa apps like VLC (and my app) can't. Is this possible in cocoa?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Dec 2000
Location: Chicago, Illinois
Status:
Offline
|
|
What I did (I think this is standard) is in the Document Types section in the Targets tab in PB is create a type called All, with Role of Editor, with Extensions "*", and OS Types "****" (I have the quotes, although those maybe unecessary).
It seems to work for me in DropCompress.
Hope this helps,
Matt Fahrenbacher
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status:
Offline
|
|
ok, that lets me open files of any extension, but it doesn't work for files with no extension (and no mime type) or for folders, which is what I really want (GC and HexEdit both accept both these kinds).
(PB ads the quotes if you try to remove them, btw)
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Vancouver, WA
Status:
Offline
|
|
IIRC, registering for the OSType 'fold' will get you folders specifically.
However, */**** normally does catch untyped files and folders. You may need to log out and back in, reboot, delete some LaunchServices cache files, or perform a virgin sacrifice to get the OS to register your change of document types.
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status:
Offline
|
|
thanks I'll try that when I get home. I don't think I had a cache problem, because I could change the ability to accept random filename extensions with just a recompile (with or without the *s).
|
|
|
| |
|
|
|
 |
|
 |
|
Addicted to MacNN
Join Date: Nov 2002
Location: Seattle, WA
Status:
Offline
|
|
Originally posted by Rickster:
IIRC, registering for the OSType 'fold' will get you folders specifically.
yup, that's just what the doctor ordered. thanks again
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|