Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 10:43 AM, Conrad Shultz wrote: > > WKWebVew is the preferred API. > > If WKWebView is missing API that prevents you from adopting it (on either iOS > or OS X) please file a bug at https://bugreport.apple.com > .

Re: questions on WebView for Mac apps

2015-09-30 Thread Conrad Shultz
WKWebVew is the preferred API. If WKWebView is missing API that prevents you from adopting it (on either iOS or OS X) please file a bug at https://bugreport.apple.com . -Conrad ___ Cocoa-dev mailing list

Re: NSColorPanel and close box

2015-09-30 Thread Matthias Schmidt
> Am 30.09.2015 um 15:43 schrieb Jens Alfke : > > >> On Sep 29, 2015, at 11:31 PM, Matthias Schmidt wrote: >> >> the host app is 4D, which is about moving to 64bit. > > Oh my god, the database 4D? I had no idea that still existed. The company I > worked

Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 29, 2015, at 10:35 PM, dangerwillrobinsondan...@gmail.com wrote: > > Then you realize it's a performance and security thing and it's pretty much > the same as the Safari Extensions API . Web views in WKWebView are actually a > separate process pool you don't own. > So you can

Re: Drawing many different strings quickly

2015-09-30 Thread Jens Alfke
> On Sep 28, 2015, at 6:07 PM, dangerwillrobinsondan...@gmail.com wrote: > > If not, NSImage has a nice API for drawing to the image context. Then you > just have an NSImage. Let AppKit do the work. It will cache the drawing of > that image until you change it. That would be trading CPU for

Re: NSColorPanel and close box

2015-09-30 Thread Matthias Schmidt
> Am 30.09.2015 um 16:11 schrieb Jens Alfke : > > > >> On Sep 30, 2015, at 12:04 AM, Matthias Schmidt wrote: >> >> while ([NSColorPanel sharedColorPanelExists]) { >> PA_Yield(); >> } > > Yikes! That looks very suspicious. You shouldn't be

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Hall
Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView in the object library in Xcode, no WKWebView at all. Just because, I changed the class of a WebView object to WKWebView, but am now seeing my app launch, become unresponsive, and never actually do anything. The only

Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 2:20 PM, Alex Hall wrote: > > Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView > in the object library in Xcode, no WKWebView at all. Just because, I changed > the class of a WebView object to WKWebView, but am now seeing my

Re: Implications of disabling ATS?

2015-09-30 Thread Mike Abdullah
> On 30 Sep 2015, at 17:17, Jens Alfke wrote: > > >> On Sep 30, 2015, at 7:06 AM, Alex Hall wrote: >> >> However, before I go doing that, does anyone know of a better way? Are there >> security implications I'm overlooking? I don't know what users

Re: questions on WebView for Mac apps

2015-09-30 Thread Charles Srstka
On Sep 30, 2015, at 12:43 PM, Conrad Shultz wrote: > > WKWebVew is the preferred API. > > If WKWebView is missing API that prevents you from adopting it (on either iOS > or OS X) please file a bug at https://bugreport.apple.com > .

Re: questions on WebView for Mac apps

2015-09-30 Thread dangerwillrobinsondanger
> On Sep 30, 2015, at 3:12 PM, Jens Alfke wrote: > > Hey, if I liked working with JavaScript DOM APIs I’d be a web developer :-p > I prefer languages with fancy features, like warning me if I pass the wrong > number of parameters to a function. At build time, even. No

NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread Peter Hudson
I would like to know when the user has finished scrolling one of my table views. I can’t see any obvious API to do it. ( I’ve checked the scrollers, views etc which are part of an NSTableView) All suggestions gratefully received. Peter ___ Cocoa-dev

Re: NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread dangerwillrobinsondanger
Check the NSScrollView notifications. However you could try to observe changes to the NSClipView bounds. You could also observe scroll events and so forth. But ultimately you will run into semantics. Resting touches, momentum phases, some slight ambiguity on whether the user feels done

Re: NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread dangerwillrobinsondanger
Sounds like you should be doing that in custom row views that draw the lines when necessary Sent from my iPhone > On Sep 30, 2015, at 9:20 PM, Peter Hudson wrote: > > Many thanks for these ideas. > > As the user scrolls one of the table views, the system does not render

Re: NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread Peter Hudson
Many thanks for these ideas. As the user scrolls one of the table views, the system does not render all the details in the rows correctly. The most obvious one :- I draw my own lines between rows - inserting separator lines where appropriate. Hence, I override drawRect. The process in here

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Kac
Are you sure you’ve looked at WKWebView in its entirety? I was looking at converting a UIWebView and WKWebView seems to have 10x MORE API than UIWebView. Its just sprinkled about in a lot more classes and delegates. This is a great resource: > On Sep 30, 2015,

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Peter Tomaselli
Certainly! Just to be clear (ended up revisiting some of my research on this today), I don't think it is possible to do this with just estimatedItemSize alone. So, the analogy with UITableView w/r/t "self sizing", as presented or at least strongly implied in that WWDC talk, breaks down

Re: questions on WebView for Mac apps

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 2:37 PM, Alex Kac wrote: > > Are you sure you’ve looked at WKWebView in its entirety? I was looking at > converting a UIWebView and WKWebView seems to have 10x MORE API than > UIWebView. Its just sprinkled about in a lot more classes and

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Doug Hill
There are few pieces of evidence that lead me to believe you that this hasn’t been done: • A search of ADC site doesn’t show any sample code with this technique. • A Google search turns up almost nothing, except the link I provided below. • A search of all github and bitbucket public turns up no

Re: questions on WebView for Mac apps

2015-09-30 Thread Marco S Hyman
On Sep 30, 2015, at 2:20 PM, Alex Hall wrote: > > Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView > in the object library in Xcode, no WKWebView at all. No WKWebView in IB. You have to build your view in code. At least it was that way last time

Re: questions on WebView for Mac apps

2015-09-30 Thread Charles Srstka
> On Sep 30, 2015, at 4:28 PM, Jens Alfke wrote: > >> On Sep 30, 2015, at 2:20 PM, Alex Hall > > wrote: >> >> Thanks everyone. I'm now using WKWebView, but it's… odd. I see only WebView >> in the object library in Xcode, no

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Doug Hill
Peter, Thanks for the reply and the code sample. It definitely has a lot of cool stuff. However, I’m still interested in whether anyone else has info in on dynamically-sized Collection View cells using the ‘estimatedItemSize’ property of the flow layout. Is this a lie from a WWDC presenter?

Re: NSTableView - Detecting when user has finished scrolling

2015-09-30 Thread Graham Cox
> On 30 Sep 2015, at 10:20 pm, Peter Hudson wrote: > > As the user scrolls one of the table views, the system does not render all > the details in the rows correctly. > The most obvious one :- I draw my own lines between rows - inserting > separator lines where

Re: questions on WebView for Mac apps

2015-09-30 Thread Alex Hall
> On Sep 30, 2015, at 17:35, Charles Srstka wrote: > >> On Sep 30, 2015, at 4:28 PM, Jens Alfke > > wrote: >> >>> On Sep 30, 2015, at 2:20 PM, Alex Hall >> > wrote: >>>

Re: Can't get dynamically sized Collection View cells

2015-09-30 Thread Roland King
> On 1 Oct 2015, at 07:57, Doug Hill wrote: > > There are few pieces of evidence that lead me to believe you that this hasn’t > been done: > > • A search of ADC site doesn’t show any sample code with this technique. > • A Google search turns up almost nothing, except the

Implications of disabling ATS?

2015-09-30 Thread Alex Hall
I was all excited, because--thanks to your answers re WebView--I had a system in place to load the contents of the first URL in the selected tweet. Then my log showed me "transport security has blocked…" and nothing worked. I've since discovered that ATS is new in iOS9/OSX10.11 and is meant to

Re: Implications of disabling ATS?

2015-09-30 Thread Jens Alfke
> On Sep 30, 2015, at 7:06 AM, Alex Hall wrote: > > However, before I go doing that, does anyone know of a better way? Are there > security implications I'm overlooking? I don't know what users will do with > this web view, and yes, some may log into sites or give other

NSView - trouble setting next responder on 10.10 - works okay on 10.9

2015-09-30 Thread Jonathan Mitchell
In my app i manage the responder chain on 10.8 and 10.9 to insert the NSViewController into the responder chain. The view controllers are inserted just below the NSWindowController so that designated view controllers can respond to actions coming up the chain from any source. ie: the