NSAlert accessory view fill horizontal space, respecting margins

2022-11-02 Thread Tor Arne Vestbø via Cocoa-dev
Hi all, I’m trying to get the accessory view of an NSAlert to layout similarity to the the text fields of the messageText and informativeText. That is: *Fill the the available horizontal space of the alert, respecting margins * Including accounting for the different margins of the

Re: ARC and C++ structures

2021-09-15 Thread Tor Arne Vestbø via Cocoa-dev
On 15 Sep 2021, at 17:39, Matt Jacobson mailto:mhjacob...@me.com>> wrote: On Sep 15, 2021, at 11:21 AM, Tor Arne Vestbø mailto:tor.arne.ves...@qt.io>> wrote: On 14 Sep 2021, at 16:33, Matt Jacobson via Cocoa-dev mailto:cocoa-dev@lists.apple.com>> wrote: By default, w

Re: ARC and C++ structures

2021-09-15 Thread Tor Arne Vestbø via Cocoa-dev
On 14 Sep 2021, at 16:33, Matt Jacobson via Cocoa-dev mailto:cocoa-dev@lists.apple.com>> wrote: By default, when an NSWindow is `-close`d (which can only happen once in its lifetime), Interesting. If the NSWindow is retained elsewhere, can it not be ordered in again? Appreciate any details y

Re: Future of Cocoa #2

2019-12-11 Thread Tor Arne Vestbø via Cocoa-dev
> On 11 Dec 2019, at 21:35, Gabriel Zachmann via Cocoa-dev > wrote: > > >> QT is probably the most viable cross-platform tool, but steep learning >> curve and mediocre GUI. Will it survive if Cocoa is deprecated? > > Good question - I have no idea. > > But I suggest you reach out to the s

Re: lockFocusIfCanDraw behavior in layer-backed mode

2018-12-23 Thread Tor Arne Vestbø
Thank you Matt for a very detailed and thorough reply! This is very useful and clarifying information. > On 17 Dec 2018, at 20:39, Matt Jacobson wrote: > > Even if it were, it’s still unsafe to ignore the rect passed to -drawRect:. > That’s because the system might require you to redraw a lar

Re: lockFocusIfCanDraw behavior in layer-backed mode

2018-12-16 Thread Tor Arne Vestbø
> On 15 Dec 2018, at 18:49, Richard Charles wrote: > > >> On Dec 15, 2018, at 8:07 AM, Tor Arne Vestbø wrote: >> >> Piggy-backing on this thread, what does lockFocusIfCanDraw actually do in >> layer-backed mode? > > I have a layer-hosting view runni

lockFocusIfCanDraw behavior in layer-backed mode

2018-12-15 Thread Tor Arne Vestbø
Hey hey, > On 15 Dec 2018, at 01:38, Matt Jacobson wrote: > > You were probably calling -lockFocusIfCanDraw > , > which does not say that. Piggy-backing on this thread, what does lockFocusIfCanDraw actually do

Re: How to clear macOS app bundle cache

2018-09-08 Thread Tor Arne Vestbø
> On 8 Sep 2018, at 21:20, Andreas Falkenhahn wrote: > > Unfortunately not. I can see my app in the lsdump and the path points to the > network share but purging the LS database doesn't have any effect. macOS > still loads the old version of my app, not the latest one on the share. Only > by re

Re: Carbon -> Cocoa

2018-08-24 Thread Tor Arne Vestbø
On 24 Aug 2018, at 21:16, Alastair Houghton wrote: > > On 24 Aug 2018, at 20:01, Tor Arne Vestbø wrote: >> >> On 23 Aug 2018, at 12:06, Alastair Houghton >> wrote: >>> >>> Run loops are based on dispatch queues too, these days. >> >>

Re: Carbon -> Cocoa

2018-08-24 Thread Tor Arne Vestbø
On 23 Aug 2018, at 12:06, Alastair Houghton wrote: > > Run loops are based on dispatch queues too, these days. Are they? We use CFRunLoop in the Qt event dispatchers on macOS and iOS, and I these behave as normal sources without any sign of dispatch queues as far as I can tell? I did experim