Re: Getting a splash screen to show

2013-07-30 Thread Keith Knauber
e very few products in the Mac App store that cost > $99 On Jul 29, 2013, at 4:08 PM, Keith Knauber mailto:kknau...@prg.com>> wrote: I can't have my splash screen get stuck on, and obscure anything in case a modal dialog decides to present itself. The general recommendation is

Re: Getting a splash screen to show

2013-07-29 Thread Keith Knauber
> > On May 15, 2013, at 11:29 AM, Steve Mills wrote: > > I added more nextEventMatchingMask's and the 4th one would actually cause the > document to be restored, which was way too early in the init method to do > that. But I found this, which seems to work much more reliably. It takes care > o

NSUserDefaults deeply nested subtle mountain lion difference

2013-07-26 Thread Keith Knauber
From Apple Docs: Values returned from NSUserDefaults are immutable, even if you set a mutable object as the value. For example, if you set a mutable string as the value for "MyStringDefault", the string you later retrieve usingstringForKey: will be immutable. The Apple docs have always said t

NSDocument saveDocumentWithDelegate deadlocked during App termination

2013-05-03 Thread Keith Knauber
How do I force *all* NSDocument dialogs to be handled SYNCHRONOUSLY? NSDocument continues to be a software maintenance nightmare. Asynchronous NSDocument dialogs should be the exception, not the rule, *especially* in these cases: NSApp knows its being asked to terminate. NSApp knows it hasn

Re: sandbox method to open my user manual pdf

2012-12-19 Thread Keith Knauber
ndle mainBundle] bundleIdentifier] createFolder: YES resolveAlias: NO ] ; } return basePath; } @end Keith Knauber Senior Software Engineer Production Resource Group 8617 Ambassador Row, Suite 120 Dallas, Texas 75247 214-819-3145 Phone 214-477-3928 Mobile 214-630-586

Re: implementing relaunch in a sandboxed app

2012-12-19 Thread Keith Knauber
onger? While I admire apps that have the budget to reconfigure on the fly, it typically takes a long time for them to be stable. Take for example, the apple usb-ethernet driver... https://discussions.apple.com/thread/3957141?start=0&tstart=0 Keith Knauber Senior Software Engineer Production

sandbox method to open my user manual pdf

2012-12-18 Thread Keith Knauber
Another simple task made impossibly complex by the sandbox… opening User_Manual_v3.6.pdf When running in the sandbox what is the apple recommended step-by-step replacement for these 2 lines of code? NSString *userManual = [[NSBundle mainBundle] pathForResource:@"User_Manual_v3.6" ofType:@"pdf"

implementing relaunch in a sandboxed app

2012-12-18 Thread Keith Knauber
Automatic relaunch of your app is such a basic software requirement, and apple has never published a clean method for accomplishing this. There are situations when a relaunch of an app is much safer, faster, and fault tolerant than an approach which kills every background thread, deletes all your

Need sample code for NSDocument / NSDocumentController

2012-07-17 Thread Keith Knauber
Please provide sample code for how to migrate from the deprecated - (id)openDocumentWithContentsOfURL:(NSURL *)absoluteURL display:(BOOL)displayDocument error:(NSError **)outError to the new approved -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:] In our case, th

Fwd: Need sample code for NSDocument / NSDocumentController

2012-07-06 Thread Keith Knauber
There is no sample code for the new -[NSDocumentController openDocumentWithContentsOfURL:display:completionHandler:] Why is there no sample project for a standard NSDocumentController/NSDocument based app? Can someone provide sample code for how to migrate from the deprecated - (id)openDocumentW

Re: How to support larger NSView hierarchy?

2012-03-19 Thread Keith Knauber
On Mar 15, 2012, at 11:29 PM, Kyle Sluder wrote: On Wed, Mar 14, 2012, at 08:15 PM, Keith Knauber wrote: >> The goal is to update this cocoa GUI app at up to 30 fps, with as little >> impact on my real-time thread and a separate apps' video frame rate as >> possible. &g

Re: How to support larger NSView hierarchy?

2012-03-19 Thread Keith Knauber
On Mar 15, 2012, at 11:29 PM, Kyle Sluder wrote: On Wed, Mar 14, 2012, at 08:15 PM, Keith Knauber wrote: >> The goal is to update this cocoa GUI app at up to 30 fps, with as little >> impact on my real-time thread and a separate apps' video frame rate as >> possible. &g

Re: How to support larger NSView hierarchy?

2012-03-15 Thread Keith Knauber
Long time no response... had to fight other fires for a while. On Feb 27, 2012, at 10:46 PM, Graham Cox wrote: Perhaps it would be better to explain your goals, rather than fragments of an implementation that appears to be, on the face of it, pointless. In my case, there are 3 pieces involved:

How to support larger NSView hierarchy?

2012-02-27 Thread Keith Knauber
In my implementation, I know enough about my very large NSView hierarchy that allows me to clip and draw the visible hierarchy very quickly. If there was a faster way to getRectsBeingDrawn for an entire view hierarchy in an offscreen window, and then reset NSWindow dirty rects needing display man