> On 21 Dec 2015, at 22:24, Sean McBride wrote:
>
> On Mon, 21 Dec 2015 22:16:39 +, Jonathan Mitchell said:
>
>> My app seems to be having trouble reading and writing to the
>> applicationSupportDirectory.
>
> What's "trouble"? What error code do you get trying to write to the
> director
> On 22 Dec 2015, at 20:11, Jonathan Mitchell wrote:
>
>
>> On 21 Dec 2015, at 22:24, Sean McBride wrote:
>>
>> On Mon, 21 Dec 2015 22:16:39 +, Jonathan Mitchell said:
>>
>>> My app seems to be having trouble reading and writing to the
>>> applicationSupportDirectory.
>
>
> 1. My prefe
> On 22 Dec 2015, at 12:21, Roland King wrote:
>
>
>> On 22 Dec 2015, at 20:11, Jonathan Mitchell wrote:
>>
>>
>>> On 21 Dec 2015, at 22:24, Sean McBride wrote:
>>>
>>> On Mon, 21 Dec 2015 22:16:39 +, Jonathan Mitchell said:
>>>
My app seems to be having trouble reading and writ
I am trying to return a dictionary from a method that uses a queue. I'm not
sure how to actually return though as I get an error (can't convert value
of type '() -> Dictionary' to expected argument type
'dispatch_block_t'. I've tried a number of things but none prevent an error
somewhere. I could d
You can’t do what you’re trying to do.
First off, a block (which is what dispatch_async() takes) is defined to take no
parameters and return nothing. That’s the source of your compilation error,
you’re trying to return something from a block defined not to return anything.
Secondly, what you’
The problem is that you need to return SOMETHING from getForecast -- right now
you're returning nothing.
The task will execute at some point "in the future" after the routine ends. An
"easy" solution is to pass a closure to getForecast that will take a
Dictionary? as a parameter (just in case
> On Dec 21, 2015, at 2:26 PM, Quincey Morris
> wrote:
>
> On Dec 21, 2015, at 14:16 , Jonathan Mitchell wrote:
>>
>> Is there anything I need to be aware of here?
>
> Try using ‘URLsForDirectory:inDomains:' instead.
Ditto. Unless my grep skills have completely deteriorated, there isn't an
You know how you can click links in email, and heck, to open them in Safari (or
whatever browser)? Is there any way to write an extension of some sort that can
intercept this and re-write the URL? I tried to write a filter in Safari proper
for the URL that the user pastes into the address bar, b