Re: NSAlert

2018-09-08 Thread Alex Zavatone
Which version of macOS are you running? Sent from my iPhone > On Sep 8, 2018, at 5:53 PM, Richard Charles wrote: > > I have a simple NSAlert presented as an attached sheet with a single default > OK button. > > When the spacebar is pressed the alert is dismissed. > > It this a new thing? >

Re: NSAlert

2018-09-08 Thread Andy Lee
I don't know where or whether it's documented, but it's not new. Using Space for "clicking" whichever control has focus has been around for a while. I don't remember offhand -- it may depend on the setting in System Preferences that governs whether all controls can get keyboard focus. --Andy On

NSAlert

2018-09-08 Thread Richard Charles
I have a simple NSAlert presented as an attached sheet with a single default OK button. When the spacebar is pressed the alert is dismissed. It this a new thing? Is this documented anywhere? --Richard Charles ___ Cocoa-dev mailing list (Cocoa-dev@l

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: How to clear macOS app bundle cache

2018-09-08 Thread Andreas Falkenhahn
On 07.09.2018 at 23:45 Sean McBride wrote: > On Mon, 3 Sep 2018 15:31:37 +0200, Andreas Falkenhahn said: >>Optimally, I'm looking for a solution to flush the app bundle cache on >>the iMac from the makefile that I run on the Mac Mini I use for building. > Not sure what "the app bundle cache" is

Re: C++ pointer to Cocoa object

2018-09-08 Thread Casey McDermott
>> If you are using ARC and want to get a strong reference on the object, you have to use __bridge_retained That is handy to know! I see there is also __bridge_transfer to go the other way. In this case we put the Cocoa controls into a NSView, which releases them. The NSView deletes our LView,

Re: C++ pointer to Cocoa object

2018-09-08 Thread Jean-Daniel
> Le 7 sept. 2018 à 19:46, Casey McDermott a écrit : > > We need to link some of our C++ classes to a matching Cocoa class. > It's easy for Cocoa to reference C++ objects. Going the other way is harder. > > We have been using a linker class that has a void pointer to the Obj-C object > in the