Re: Prevent autoloading of last opened document

2014-02-13 Thread Dave Fernandes
Good point. I guess if the document URL is nil, you should think twice about this. On Feb 13, 2014, at 8:38 PM, Kyle Sluder wrote: > On Thu, Feb 13, 2014, at 05:21 PM, Dave Fernandes wrote: >> Try returning nil for the document in [NSDocumentController >> reopenDocumentForURL]’s completion

Re: Prevent autoloading of last opened document

2014-02-13 Thread Kyle Sluder
On Thu, Feb 13, 2014, at 05:21 PM, Dave Fernandes wrote: > Try returning nil for the document in [NSDocumentController > reopenDocumentForURL]’s completion handler, and also return the > following error in the completion handler: > > [NSError errorWithDomain:NSCocoaErrorDomain code:NSUserCance

Re: Prevent autoloading of last opened document

2014-02-13 Thread Dave Fernandes
Try returning nil for the document in [NSDocumentController reopenDocumentForURL]’s completion handler, and also return the following error in the completion handler: [NSError errorWithDomain:NSCocoaErrorDomain code:NSUserCancelledError userInfo:nil] On Feb 13, 2014, at 6:57 PM, Mike Abdul

Re: Prevent autoloading of last opened document

2014-02-13 Thread Mike Abdullah
On 13 Feb 2014, at 23:39, Eric Gorr wrote: > > >> On Feb 13, 2014, at 6:22 PM, Mike Abdullah wrote: >> >> >>> On 13 Feb 2014, at 21:12, Eric Gorr wrote: >>> >>> What I want to do seems like it should be fairly straightforward, but >>> doesn't seem to be. All I want to do is with a standa

Re: Prevent autoloading of last opened document

2014-02-13 Thread Eric Gorr
> On Feb 13, 2014, at 6:22 PM, Mike Abdullah wrote: > > >> On 13 Feb 2014, at 21:12, Eric Gorr wrote: >> >> What I want to do seems like it should be fairly straightforward, but >> doesn't seem to be. All I want to do is with a standard NSDocument Based >> (with Core Data) is prevent the l

Re: Prevent autoloading of last opened document

2014-02-13 Thread Mike Abdullah
On 13 Feb 2014, at 21:12, Eric Gorr wrote: > What I want to do seems like it should be fairly straightforward, but doesn't > seem to be. All I want to do is with a standard NSDocument Based (with Core > Data) is prevent the last document opened from opening automatically the next > time the a

Prevent autoloading of last opened document

2014-02-13 Thread Eric Gorr
What I want to do seems like it should be fairly straightforward, but doesn't seem to be. All I want to do is with a standard NSDocument Based (with Core Data) is prevent the last document opened from opening automatically the next time the application is launched. What is the best way to accom