Apparently the API for these is a bit weird, first you call the
startAccessingSecurityScopedResource method and it returns whether the
URL is security scoped, and if so, it will give you access. In our case
we don't care, we just want access. Once you're done and the method
returns YES you are required to use stopAccessingSecurityScopedResource
to relinquish kernel resources, but the documentation states that this
is a no-op on anything you don't own so we can just call it on all URLs
unconditionally.
This reverts commit 112a14242d.
@jasonconway reported an issue with root imports not working at all
because startAccessingSecurityScopedResource returned false. This is\
also missing error reports if error ends up as nil.
awakeFromNib can potentially be called multiple times; in our case twice
because it needs to load the view controller and then the file owner,
which is the view controller again. viewDidLoad is called once.
Also, remove a duplicate segue.