How do I know what type of document handleOpenURL is responding to?

Anders Sewerin Johansen

Let's say I have registered several schemes as appropriate for my app, such as text file and PDF.

I open an attached file in the mail app. My app is invoked, and the handleOpenURL method is fired with an URL.

Do I have to (crudely) parse the URL, or.. what?

Martin R

You can call the NSURL method getResourceValue:forKey:error: with the NSURLTypeIdentifierKey to get the uniform type identifier (UTI) of the file passed to the application.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How do I know what NaturalEarthFeature names are available for cartopy?

분류에서Dev

How do I know what to put in the XML fields?

분류에서Dev

What is "Type mismatch" and how do I fix it?

분류에서Dev

How do I know what files are executed when I open an application?

분류에서Dev

how do i make a response bot not keep responding?

분류에서Dev

How do i know if the rotation lock is on or off?

분류에서Dev

How can I tell if handleOpenURL is called app startup or while app is running?

분류에서Dev

How do I know I'm using kubuntu?

분류에서Dev

How do I know if a QuickBlox message has been throttled

분류에서Dev

How do I know if mpmath is using gmpy or gmpy2?

분류에서Dev

how do I know if and why linux is killing my processes?

분류에서Dev

How do I know which /dev/ttyS* is my serial port?

분류에서Dev

How do I know who to blame for hackage inconsistencies

분류에서Dev

How do I know when lazy `umount -l` completes?

분류에서Dev

What is the (void*) type? And how can I dereference it?

분류에서Dev

DocuSign: How do I dynamically replace placeholders in our source document?

분류에서Dev

How do I add xml in HTML 5 document?

분류에서Dev

What do I need to know on NLP to be able to use and train Stanford NLP for intent analysis?

분류에서Dev

Windows 10 Spotlight – how do I know which photos I marked as "I am a fan"?

분류에서Dev

What is fileAPI ? How do I use it with angular?

분류에서Dev

How to know what to enable in the kernel?

분류에서Dev

How do I use an extended generic type's type in a class?

분류에서Dev

What is dconf, what is its function, and how do I use it?

분류에서Dev

How do I know which method/class is called when I test java GUI in eclipse?

분류에서Dev

how do i calculate the end time of appointment when i know length of the service?

분류에서Dev

How do I know which files will be included in a linux kernel before I build it?

분류에서Dev

How do I know if I'm using a Rackspace Developer+ plus account?

분류에서Dev

How do I know if the man page I'm looking at is the correct one?

분류에서Dev

Android Kotlin Room:How do I know how many tables in my zoom-database?

Related 관련 기사

  1. 1

    How do I know what NaturalEarthFeature names are available for cartopy?

  2. 2

    How do I know what to put in the XML fields?

  3. 3

    What is "Type mismatch" and how do I fix it?

  4. 4

    How do I know what files are executed when I open an application?

  5. 5

    how do i make a response bot not keep responding?

  6. 6

    How do i know if the rotation lock is on or off?

  7. 7

    How can I tell if handleOpenURL is called app startup or while app is running?

  8. 8

    How do I know I'm using kubuntu?

  9. 9

    How do I know if a QuickBlox message has been throttled

  10. 10

    How do I know if mpmath is using gmpy or gmpy2?

  11. 11

    how do I know if and why linux is killing my processes?

  12. 12

    How do I know which /dev/ttyS* is my serial port?

  13. 13

    How do I know who to blame for hackage inconsistencies

  14. 14

    How do I know when lazy `umount -l` completes?

  15. 15

    What is the (void*) type? And how can I dereference it?

  16. 16

    DocuSign: How do I dynamically replace placeholders in our source document?

  17. 17

    How do I add xml in HTML 5 document?

  18. 18

    What do I need to know on NLP to be able to use and train Stanford NLP for intent analysis?

  19. 19

    Windows 10 Spotlight – how do I know which photos I marked as "I am a fan"?

  20. 20

    What is fileAPI ? How do I use it with angular?

  21. 21

    How to know what to enable in the kernel?

  22. 22

    How do I use an extended generic type's type in a class?

  23. 23

    What is dconf, what is its function, and how do I use it?

  24. 24

    How do I know which method/class is called when I test java GUI in eclipse?

  25. 25

    how do i calculate the end time of appointment when i know length of the service?

  26. 26

    How do I know which files will be included in a linux kernel before I build it?

  27. 27

    How do I know if I'm using a Rackspace Developer+ plus account?

  28. 28

    How do I know if the man page I'm looking at is the correct one?

  29. 29

    Android Kotlin Room:How do I know how many tables in my zoom-database?

뜨겁다태그

보관