Re: disabling Apple Crash Reporter

2015-03-09 Thread Jonathan Mitchell
> On 9 Mar 2015, at 20:56, Torsten Curdt wrote: > > This seems to work! Nice catch indeed. I have confirmed that this works with the HockeyApp SDK (which uses PLCrashReporter). However the user experience is rather barren. The app simply dies. As well as posting the report ReportCrash(8) als

Re: All buttons lost focus ring on Yosemite

2015-03-09 Thread Graham Cox
> On 9 Mar 2015, at 8:58 pm, Dragan Milić wrote: > > Sure, no problem. Since it’s a bit long, I attached it as a separate ObjC > source file. A few notes: > > * It’s rather old code (not made by me) that I haven’t looked into for years > until this problem appeared. > * I rearranged it a bit

Delete propagation to parent context

2015-03-09 Thread Rick Mann
I have a Core Data entity with a file attribute that is a path to a file on disk. Eventually, that entity gets deleted on a private MOC. I want to defer deleting the associated file until the main MOC is saved, so in -prepareForDeletion, I check to see if the MOC has a parent MOC, and if not, I

Re: disabling Apple Crash Reporter

2015-03-09 Thread Torsten Curdt
This seems to work! void exitCallback(siginfo_t *info, ucontext_t *uap, void *context) { exit(-1); } - (void) setupCrashReporting { PLCrashReporter *crashReporter = [PLCrashReporter sharedReporter]; ... PLCrashReporterCallbacks callbacks; callbacks.version = 0; callbacks

Re: disabling Apple Crash Reporter

2015-03-09 Thread Torsten Curdt
> > I guess it might be worth opening bug reports for the crash reporters to > use "exit" if they don't. > > > Or just find the exit point to PLCrashReporter’s signal handler, add an > “exit” there, and send a patch to the developers. I can’t imagine it’d be > much work. > Touché :) Actually it s

Re: disabling Apple Crash Reporter

2015-03-09 Thread Charles Srstka
On Mar 9, 2015, at 2:46 PM, Torsten Curdt wrote: > > I guess it might be worth opening bug reports for the crash reporters to > use "exit" if they don't. Or just find the exit point to PLCrashReporter’s signal handler, add an “exit” there, and send a patch to the developers. I can’t imagine it’

Re: disabling Apple Crash Reporter

2015-03-09 Thread Torsten Curdt
> > If you read the man page for abort() it says use exit() to avoid the > ReportCrash daemon. > Ah, nice. Need to try that. Adium does this after launching their crash report helper app. > > How do they get there? > Simple. > Unix signals handling. > Right there in the really nice Adium code yo

Re: All buttons lost focus ring on Yosemite

2015-03-09 Thread Kyle Sluder
On Mon, Mar 9, 2015, at 03:58 AM, Dragan Milić wrote: > Thanks for looking into this, as I really hit a dead end with it. I'd start by looking at that -[NSView(NTExtensions) drawFocusRing] method. If you comment it out, what happens? For safety, you really ought to be prefixing all of your catego

Re: All buttons lost focus ring on Yosemite

2015-03-09 Thread Dragan Milić
On pon 09.03.2015., at 16.33, Motti Shneor wrote: >> Date: 9 במרץ 2015 בשעה 11:58:11 GMT+2 >> From: Dragan Milić >> Subject: Re: All buttons lost focus ring on Yosemite >> To: Cocoa-dev >> >> On pet 06.03.2015., at 18.37, Kyle Sluder wrote: >> >>> On Fri, Mar 6, 2015, at 10:49 AM, Dragan Milić

Re: disabling Apple Crash Reporter

2015-03-09 Thread Giacomo Tufano
> Il giorno 09/mar/2015, alle ore 16:53, dangerwillrobinsondan...@gmail.com ha > scritto: > Right there in the really nice Adium code you linked to. > You could copy and paste verbatim almost. The Adium code (and this one for sure, check the starting comment) is licensed under the GPL, you sho

Re: disabling Apple Crash Reporter

2015-03-09 Thread dangerwillrobinsondanger
If you read the man page for abort() it says use exit() to avoid the ReportCrash daemon. Adium does this after launching their crash report helper app. How do they get there? Simple. Unix signals handling. Right there in the really nice Adium code you linked to. You could copy and paste verb

Re: Cocoa-dev Digest, Vol 12, Issue 137

2015-03-09 Thread Motti Shneor
> > Date: 9 במרץ 2015 בשעה 11:58:11 GMT+2 > From: Dragan Milić > Subject: Re: All buttons lost focus ring on Yosemite > To: Cocoa-dev > > > On pet 06.03.2015., at 18.37, Kyle Sluder wrote: > >> On Fri, Mar 6, 2015, at 10:49 AM, Dragan Milić wrote: >> >>> Thanks for the suggestion. A bad cat

Re: disabling Apple Crash Reporter

2015-03-09 Thread Robert Monaghan
Hi Torsten, This is of interest to me, as well. I haven't had a chance to look into it, but I will over the next few days. Bob Sent from my iPhone > On Mar 9, 2015, at 15:54, Torsten Curdt wrote: > > I could not find the prefs app > > > https://developer.apple.com/library/mac/technotes/tn2

Re: disabling Apple Crash Reporter

2015-03-09 Thread Torsten Curdt
I could not find the prefs app https://developer.apple.com/library/mac/technotes/tn2004/tn2123.html#FIGCRASHREPORTERPREFS but seems like it's just a fancy way of switching the global state. http://cocoadev.com/HowToAvoidSendToAppleWindow has some further suggestions. Apparently Adium works

Re: disabling Apple Crash Reporter

2015-03-09 Thread Jonathan Mitchell
> On 7 Mar 2015, at 12:55, Torsten Curdt wrote: > > Is there a way to disabled the Apple crash reporter dialog? I know why you want to do this (I do too) but I don’t think you can on a per app basis. An info.plist key could provide the necessary token but ReportCrash(8) is not documented to

Re: Document based architecture

2015-03-09 Thread Bavarious
On Mar 9, 2015, at 04:53, Roland King wrote: > > >> On 9 Mar 2015, at 15:38, Patrick J. Collins >> wrote: >> >> Hi everyone, >> >> It was recently suggested to me that my app should be a document based >> architecture design since I want File -> Open -> to bring up a >> new >> "document" w

Re: All buttons lost focus ring on Yosemite

2015-03-09 Thread Dragan Milić
On pet 06.03.2015., at 18.37, Kyle Sluder wrote: > On Fri, Mar 6, 2015, at 10:49 AM, Dragan Milić wrote: > >> Thanks for the suggestion. A bad category was something I also thought could >> be the reason for this behaviour, but it looks like it isn’t. There are no >> NSButton, NSButtonCell, nor

Re: Document based architecture

2015-03-09 Thread Roland King
> On 9 Mar 2015, at 15:38, Patrick J. Collins > wrote: > > Hi everyone, > > It was recently suggested to me that my app should be a document based > architecture design since I want File -> Open -> to bring up a > new > "document" window. Googling this topic has been a bit frustrating... I

Document based architecture

2015-03-09 Thread Patrick J. Collins
Hi everyone, It was recently suggested to me that my app should be a document based architecture design since I want File -> Open -> to bring up a new "document" window. Googling this topic has been a bit frustrating... I see lots of references in apple's documentation saying things like "The X

Re: Drawing inside an NSImage?

2015-03-09 Thread Markus Spoettl
On 09/03/15 00:12, Patrick J. Collins wrote: [_image lockFocus]; [[NSColor blueColor] set]; NSBezierPath *line = [NSBezierPath bezierPath]; NSPoint pointA = NSMakePoint(0, 0); NSPoint pointB = NSMakePoint(self.bounds.size.width, 0);