Neil, 

Thanks a lot for the detailed response. I am new to Racket, FFI and 
everything else but I decided to take a shot at it today. I've managed to 
create a web-view% GUI class that can display web pages on macOS. It is 
wrapping around WKWebView which is the current way of doing things. I 
haven't programmed in Objective-C in 16 years, so I a bit over my head 
here. 

I've uploaded it to: 

  https://github.com/soapdog/racket-web-view 

I don't yet feel that it is ready for the package catalog. I need to fix 
many things and I'd really welcome help from people who know the current 
Objective-C way of doing things. WKWebView relies a lot in properties and I 
can't find a way to deal with them. For example the "delegate" in the code 
in the repo is not working, nor is the retrieval of the current URL (which 
in Objective-C should be as simple as "webView.URL") 

Anyway, it is a first step towards a real Web View for Racket GUI. It can 
already load pages and navigate, so it is not completely broken. This is my 
first FFI project and also my first Racket code after doing Beautiful 
Racket, it is all brand new to me. Sorry if I'm not idiomatic. 

I'd really like feedback, advise and help with this. All programming 
ecosystems benefit from having Web Views. I hope this becomes my first 
contribution to Racket. 

I also need to do Windows and Linux, but one lion at a time... 

Cheers 

andre 
PS: I tried posting this message a couple times but it was not getting 
through...

I was building a little RSS feed reader here when I noticed that I don't 
> know of any webview package to be used from Racket. My search on the 
> package catalog returned nothing.
>
> Is there a webview for Racket? How should I display HTML?
>
> I'd really appreciate any help, even if just pointing me into some 
> application source code that is doing that.
>
> thanks in advance
> Andre
>
> -- 
> http://www.andregarzia.com -- All We Do Is Code.
> http://fon.nu -- minimalist url shortening service.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/ac105769-ad2d-4c9f-a56b-3cba9870299e%40googlegroups.com.

Reply via email to