Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Open CSV and PDF file in your application

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 639
    Comment on it

    Add following line of code in your Plist file to open CSV and PDF file in your application. Please note that UTTypeIdentifier should be unique.

    <key>CFBundleDocumentTypes</key>
        <array>
            <dict>
                <key>CFBundleTypeName</key>
                <string>US Presidents File</string>
                <key>CFBundleTypeRole</key>
                <string>Viewer</string>
                <key>LSHandlerRank</key>
                <string>Owner</string>
                <key>LSItemContentTypes</key>
                <array>
                    <string>Damian-sss.${PRODUCT&#95;NAME:rfc1034identifier}</string>
                    <string>Damian-s.${PRODUCT&#95;NAME:rfc1034identifier}</string>
                </array>
            </dict>
        </array>
        <key>UTExportedTypeDeclarations</key>
        <array>
            <dict>
                <key>UTTypeConformsTo</key>
                <array>
                    <string>public.data</string>
                </array>
                <key>UTTypeIdentifier</key>
                <string>Damian-sss.${PRODUCT&#95;NAME:rfc1034identifier}</string>
                <key>UTTypeDescription</key>
                <string>US Presidents File</string>
                <key>UTTypeTagSpecification</key>
                <dict>
                    <key>public.filename-extension</key>
                    <string>pdf</string>
                    <key>public.mime-type</key>
                    <string>application/uspresidents</string>
                </dict>
            </dict>
            <dict>
                <key>UTTypeConformsTo</key>
                <array>
                    <string>public.data</string>
                </array>
                <key>UTTypeIdentifier</key>
                <string>Damian-s.${PRODUCT&#95;NAME:rfc1034identifier}</string>
                <key>UTTypeDescription</key>
                <string>US Presidents File</string>
                <key>UTTypeTagSpecification</key>
                <dict>
                    <key>public.filename-extension</key>
                    <string>csv</string>
                    <key>public.mime-type</key>
                    <string>application/uspresidents</string>
                </dict>
            </dict>
        </array>
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: