Re: Document architecture - stop it from opening untitled documents?

2009-10-10 Thread Ken Thomases
On Oct 9, 2009, at 8:57 PM, aaron smith wrote: On Fri, Oct 9, 2009 at 6:52 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey All, quick question. I'm trying to figure out how to stop untitled documents from opening when the application first runs. I've been looking on google, and

Re: Document architecture - stop it from opening untitled documents?

2009-10-10 Thread aaron smith
Thanks Ken. On Sat, Oct 10, 2009 at 12:05 AM, Ken Thomases k...@codeweavers.com wrote: On Oct 9, 2009, at 8:57 PM, aaron smith wrote: On Fri, Oct 9, 2009 at 6:52 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey All, quick question. I'm trying to figure out how to stop untitled

Document architecture - stop it from opening untitled documents?

2009-10-09 Thread aaron smith
Hey All, quick question. I'm trying to figure out how to stop untitled documents from opening when the application first runs. I've been looking on google, and tried some different combinations of method overrides on NSDocumentController. I figured out how to stop the untitled doc from opening,

Re: Document architecture - stop it from opening untitled documents?

2009-10-09 Thread aaron smith
ok. nevermind. I got it. You have to implement a method from NSApplicationDelegate: - (BOOL) applicationOpenUntitledFile:(NSApplication *) theApplication { return true; } On Fri, Oct 9, 2009 at 6:52 PM, aaron smith beingthexemplaryli...@gmail.com wrote: Hey All, quick question. I'm