Re: disabling Apple Crash Reporter

2015-03-10 Thread Torsten Curdt
> > However the user experience is rather barren. > The app simply dies. > As well as posting the report ReportCrash(8) also allows informs the user > of termination and allows restart. > I know that prompting users twice for reporting is inelegant and confusing > but crashing with no UI feedback

Re: disabling Apple Crash Reporter

2015-03-10 Thread dangerwillrobinsondanger
Again Unix to the rescue. http://stackoverflow.com/questions/19147386/system-call-fork-and-execv-function Sent from my iPhone On 2015/03/10, at 18:08, Torsten Curdt wrote: >> >> However the user experience is rather barren. >> The app simply dies. > > >> As well as posting the report Repor

Re: disabling Apple Crash Reporter

2015-03-10 Thread Torsten Curdt
I wasn't aware that this is OK to do from a signal handler. Is it really? On Tue, Mar 10, 2015 at 10:22 AM, wrote: > Again Unix to the rescue. > > http://stackoverflow.com/questions/19147386/system-call-fork-and-execv-function > > > Sent from my iPhone > > On 2015/03/10, at 18:08, Torsten Curdt

Re: All buttons lost focus ring on Yosemite

2015-03-10 Thread Dragan Milić
My previous message sent to the list apparently didn’t get admin approval, there were two attached images showing standard alarm panels with buttons which don’t draw their focus ring. Therefore, in this message I’ll combine answers to both Kyle and Graham. On pon 09.03.2015., at 17.48, Kyle Slu

Re: Trying to create a 1px width NSBox

2015-03-10 Thread Uli Kusterer
On 09 Mar 2015, at 01:22, Patrick J. Collins wrote: >> Not sure why you'd waste time trying to bend unsuitable UI components to >> your will instead of building a custom view. >> It's super easy and it always does exactly what you design it to do. > > Well I guess I can ask the reverse question

Re: All buttons lost focus ring on Yosemite

2015-03-10 Thread dangerwillrobinsondanger
What happens if you turn on full keyboard access? Sent from my iPhone > On 2015/03/10, at 18:45, Dragan Milić wrote: > > My previous message sent to the list apparently didn’t get admin approval, > there were two attached images showing standard alarm panels with buttons > which don’t draw th

MacOSX screensaver not loading due to Library not loaded: @rpath/libswiftAppKit.dylib

2015-03-10 Thread Juanjo Conti
We have a working Mac OS X screensaver as a standalone Xcode project, but we needed to have it as a target in another Xcode project that also contains a related app. I added a target for a screensaver, copied the code, added to that target, etc, etc. The code is the same one that works in the othe

Re: disabling Apple Crash Reporter

2015-03-10 Thread Jonathan Mitchell
> On 10 Mar 2015, at 09:08, Torsten Curdt wrote: > > However the user experience is rather barren. > The app simply dies. > > As well as posting the report ReportCrash(8) also allows informs the user of > termination and allows restart. > I know that prompting users twice for reporting is inel

NSRunningApplication executableURL issue in Swift

2015-03-10 Thread Bill Cheeseman
I'm using Xcode 6.2 and Swift 1.1. 1. The following statement reports the error "'NSURL?' does not have a member named 'path'" even though executableURL has a trailing exclamation point to unwrap it. The caret identifying the location of the error is placed under the exclamation point. for thi

removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-10 Thread Sean McBride
Hi all, Can anyone think of a sitation where using removeObserver:forKeyPath: works correctly, then modernizing the code to use removeObserver:forKeyPath:context: breaks things? Long story: I have a custom NSView subclass that exposes a custom binding. In bind: it does addObserver:forKeyPath:

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-10 Thread Keary Suska
On Mar 10, 2015, at 11:50 AM, Sean McBride wrote: > Hi all, > > Can anyone think of a sitation where using removeObserver:forKeyPath: works > correctly, then modernizing the code to use > removeObserver:forKeyPath:context: breaks things? > > Long story: I have a custom NSView subclass that ex

Re: removeObserver:forKeyPath:context: fails; but removeObserver:forKeyPath: works?!

2015-03-10 Thread Quincey Morris
On Mar 10, 2015, at 10:50 , Sean McBride wrote: > > Can anyone think of a sitation where using removeObserver:forKeyPath: works > correctly, then modernizing the code to use > removeObserver:forKeyPath:context: breaks things? If something else is using a conflicting ‘removeObserver:forKeyPath:

NSButton (radio button) not calling action when overlapped by invisible NSButton?

2015-03-10 Thread Aandi Inston
I am implementing the Cocoa back end of a portable control library, and have hit one particular strange problem. The dialogs are frequently very complex, with areas showing different groups of controls according to context. Individual controls are shown/hidden by the higher level code to make this

Re: NSRunningApplication executableURL issue in Swift

2015-03-10 Thread Roland King
> On 11 Mar 2015, at 00:24, Bill Cheeseman wrote: > > I'm using Xcode 6.2 and Swift 1.1. > > 1. The following statement reports the error "'NSURL?' does not have a member > named 'path'" even though executableURL has a trailing exclamation point to > unwrap it. The caret identifying the locat

Re: NSRunningApplication executableURL issue in Swift

2015-03-10 Thread Bavarious
> On Mar 10, 2015, at 21:17, Roland King wrote: > > >> On 11 Mar 2015, at 00:24, Bill Cheeseman wrote: >> >> I'm using Xcode 6.2 and Swift 1.1. >> >> 1. The following statement reports the error "'NSURL?' does not have a >> member named 'path'" even though executableURL has a trailing excla

Different notification icons in push notifications

2015-03-10 Thread Claudio M. E. Bastos Iorio
Hello everyone, I've been looking everywhere and as far as I understand, the following is not actually possible, but.. could you guys confirm? Is it possible to have different icons for different push notifications on the same iOS application? For example: let's say that I'm displaying a Bann

Re: NSRunningApplication executableURL issue in Swift

2015-03-10 Thread Quincey Morris
On Mar 10, 2015, at 22:26 , Bavarious wrote: > > Much like in Objective-C. If you write > > void someFunction(id obj) { >NSLog(@"%@", [obj bundleURL]); > } > > the compiler picks *some* method that matches that selector So how come this behavior has been imported into Swift? What problems

Re: NSRunningApplication executableURL issue in Swift

2015-03-10 Thread dangerwillrobinsondanger
>> On 2015/03/11, at 14:44, Quincey Morris >> wrote: >> >> On Mar 10, 2015, at 22:26 , Bavarious wrote: >> >> Much like in Objective-C. If you write >> >> void someFunction(id obj) { >> NSLog(@"%@", [obj bundleURL]); >> } >> >> the compiler picks *some* method that matches that selector

Re: NSRunningApplication executableURL issue in Swift

2015-03-10 Thread Quincey Morris
On Mar 10, 2015, at 22:57 , dangerwillrobinsondan...@gmail.com wrote: > > This is one extra thing you have to really get used to with Swift. You learn > Swift, then learn that it effectively requires some constant special handling > for NSObject's descendants. > If you're using the frameworks t