Re: NSSavePanel runModal isn't working in sandbox?

2012-06-10 Thread Samuel Williams
Hi Corbin + others, I wrote up my full experience including the solution I came up with on my blog here: http://www.codeotaku.com/blog/2012-06/sandboxing-core-data-and-migrations Please feel free to let me know if the code seems like a mistake. I filed a bug report Problem ID: 11544676:

Why does NSDocument not care about saving Viewer-role document types

2012-06-10 Thread Markus Spoettl
I have an NSDocument based app that supports two file types, one as an Editor (for the new app version's documents) role and one as a Viewer (for old app version documents). Both are based on the same document class which reads both but saves only the new version format. When -saveDocument:

NSDocument -canAsynchronouslyWriteToURL::: never called

2012-06-10 Thread Markus Spoettl
Keeping the list server busy while everyone else seem to have better things to do... Is there an magic trick to get the framework to actually call NSDocument's - (BOOL)canAsynchronouslyWriteToURL:(NSURL *)url ofType:(NSString *)typeName forSaveOperation:(NSSaveOperationType)saveOperation

Re: NSDocument -canAsynchronouslyWriteToURL::: never called

2012-06-10 Thread Markus Spoettl
DeprecatedOn 6/10/12 7:21 PM, Markus Spoettl wrote: Keeping the list server busy while everyone else seem to have better things to do... Is there an magic trick to get the framework to actually call NSDocument's - (BOOL)canAsynchronouslyWriteToURL:(NSURL *)url ofType:(NSString *)typeName

Re: NSDocument -canAsynchronouslyWriteToURL::: never called

2012-06-10 Thread Markus Spoettl
On 6/10/12 7:45 PM, Markus Spoettl wrote: Well, it suddenly started working and the reason is that apparently you need to have -saveToURL:ofType:forSaveOperation:completionHandler: overwritten. If you don't you just don't get to use background writing. Overwriting this method does the trick.

Re: NSDocument -canAsynchronouslyWriteToURL::: never called

2012-06-10 Thread Alex Zavatone
On Jun 10, 2012, at 1:45 PM, Markus Spoettl wrote: DeprecatedOn 6/10/12 7:21 PM, Markus Spoettl wrote: Keeping the list server busy while everyone else seem to have better things to do... Is there an magic trick to get the framework to actually call NSDocument's -

Re: NSDocument -canAsynchronouslyWriteToURL::: never called

2012-06-10 Thread Markus Spoettl
On 6/10/12 9:21 PM, Alex Zavatone wrote: This is one of the joys of Mac development I've seen. Class methods are called that you never know about and you have to override stuff that you never knew were parts of the class, let alone are even called. To be fair it is documented, just not were I

Re: NSDocument -canAsynchronouslyWriteToURL::: never called

2012-06-10 Thread Mike Abdullah
On 10 Jun 2012, at 10:45, Markus Spoettl wrote: DeprecatedOn 6/10/12 7:21 PM, Markus Spoettl wrote: Keeping the list server busy while everyone else seem to have better things to do... Is there an magic trick to get the framework to actually call NSDocument's -

Re: Why does NSDocument not care about saving Viewer-role document types

2012-06-10 Thread Graham Cox
On 11/06/2012, at 3:14 AM, Markus Spoettl wrote: I have an NSDocument based app that supports two file types, one as an Editor (for the new app version's documents) role and one as a Viewer (for old app version documents). Both are based on the same document class which reads both but

Re: QTKit from UNIX app?

2012-06-10 Thread Jeff Johnson
Hi Todd. FWIW, I have a LSBackgroundOnly application that uses QTKit. Instead of NSApplicationMain(), I do [[NSApplication sharedApplication] run]. Perhaps that's not exactly what you want, but pretty close. It does suggest you might be able to get away with, say, running the run loop