Re: Still trying to capture a filename...
Re: Still trying to capture a filename...
- Subject: Re: Still trying to capture a filename...
- From: email@hidden
- Date: Fri, 1 Nov 2002 20:47:19 +0100
On vendredi, novembre 1, 2002, at 08:38 PM, Jerry LeVan wrote:
Earlier I requested assistance for launching an App by dragging a file
onto
its icon ( and capturing the filename of the dragged file)
I have made a tiny bit of progress... If I paste:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>*</string>
</array>
<key>CFBundleTypeName</key>
<string>NSStringPboardType</string>
<key>CFBundleTypeOSTypes</key>
<array>
<string>****</string>
</array>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
</array>
Into the info.list, the application *will* launch when a file is
dropped on
the app's icon!
I don't seem to be able to make the modified info.list permanent.
Every time
I rebuild the app, the info.list looses the CFBundleDocumentTypes
entry :)
This information is built dynamically from the information you provided
in the Target Panel.
1) Launch project Builder
2) Open your Project
3) Select the Target Vertical Pane
4) Select your Target
5) Select the Document Types line in the Info.plist Entries section on
the right.
6) Fill it with your information
_______________________________________________
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.