42

In Xcode, under Info tab, what's Role dropdown in URL Types section for? The valid value for this is Editor, Viewer, None.

Boon
  • 40,656
  • 60
  • 209
  • 315

1 Answers1

49

It represents what your app can do with the URL / file type.

  • Editor == read and write.
  • Viewer == read only.
  • None == can't use at all.

This flag isn't used by iOS.

Wain
  • 118,658
  • 15
  • 128
  • 151
  • What file type are you referring to? – Boon May 17 '13 at 02:44
  • Do you have any documentation on that? Is this used for Mac apps? – ciryx Aug 21 '13 at 12:12
  • 8
    @ciryx, yes, it is used on Mac OS X. Check the docs for info.plist keys on the Apple dev site. – Wain Aug 21 '13 at 12:13
  • 5
    It is for MacOS actually. The actual key is `CFBundleTypeRole` and [official doc](https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html) – Desmond DAI Apr 25 '17 at 02:41
  • I don't think the archived doc you mentioned is helpful. `CFBundleTypeRole` appears twice, and in the URL section, it says "iOS" and "macOS". – benc Aug 20 '23 at 05:12