Gamecenter not updating scores at the completion of submit

2017-12-22 Thread Dan S
Hello, I am trying to pull the latest score list from the GameCenter but once it is submited, it does not comeback right away, but after 3-15 seconds delay (as in it works if I do the fetch on a delay) Here is sample of what I do doring submition/fetching, and wonder if this is just while in testf

Exception - completion routine is not called

2016-09-22 Thread Dan S
Hello, I have an 'NSInternalInconsistencyException': 'Completion handler passed to -[ViewController webView:runJavaScriptAlertPanelWithMessage:initiatedByFrame:completionHandler:] was not called' JavaScript sends message to wkwebkit, and imediatelly after runs alert('test') (from same jscript func

Re: NSURLProtocol

2015-04-11 Thread Dan S
>> >> Either that or you have both http:// and https:// written in your code >> at different points. >> >> So I suppose the first question to be asked is, do you INTEND to use http >> or https? >> >> >> On Apr 11, 2015, at 8:07 PM, danchik wrot

NSURLProtocol

2015-04-10 Thread Dan S
Is behavior of NSURLProtocol changed with Safari 5.1? I have a plugin that registeres a protocol handler xyz:// for example It succeeds and I can see all the requests to files on web pages being consulted with the object via +(BOOL) canInitWithRequest:(NSUrlRequest): With Safari 5.0 I would get

Re: NSData DataWithContentsOfURL within a protocol handler

2012-09-06 Thread Dan S
, Sep 6, 2012 at 1:19 PM, Jens Alfke wrote: > > On Sep 6, 2012, at 11:25 AM, Dan S wrote: > > I will try to offload the server access to a different thread (though I > still need to block the protocol thread because I still have to return the > correct data for the current call

Re: NSData DataWithContentsOfURL within a protocol handler

2012-09-06 Thread Dan S
ol instance itself. On Thu, Sep 6, 2012 at 11:55 AM, Dan S wrote: > if you meant using the grand central dispatch, i think that only became > available in 10.6, I need to support this for 10.5 > > > On Thu, Sep 6, 2012 at 11:25 AM, Dan S wrote: > >> No, actually I'

Re: NSData DataWithContentsOfURL within a protocol handler

2012-09-06 Thread Dan S
if you meant using the grand central dispatch, i think that only became available in 10.6, I need to support this for 10.5 On Thu, Sep 6, 2012 at 11:25 AM, Dan S wrote: > No, actually I've completely missed that it was answered. Thank you. > > Unfortunatelly, the requester

Re: NSData DataWithContentsOfURL within a protocol handler

2012-09-06 Thread Dan S
No, actually I've completely missed that it was answered. Thank you. Unfortunatelly, the requester is expecting a return data, error or a redirect. And until the api can be respeced, the sync response has to stay in. It isn't that it needs to load from network every request, but some volotile da