Duplicating an edited document in 10.7.1

2011-09-20 Thread Gerriet M. Denkmann
In my toy editor I open an existing document, modify it and click Duplicate. A Sheet comes down and tells me that the duplicate will contain my latest modifications. I click the default Duplicate button and get: 2011-09-20 16:29:43.164 TextEditor[4062:707] *** -[NSPathStore2

Re: Duplicating an edited document in 10.7.1

2011-09-20 Thread Mike Abdullah
On 20 Sep 2011, at 10:49, Gerriet M. Denkmann wrote: In my toy editor I open an existing document, modify it and click Duplicate. A Sheet comes down and tells me that the duplicate will contain my latest modifications. I click the default Duplicate button and get: 2011-09-20

Re: Duplicating an edited document in 10.7.1

2011-09-20 Thread Gerriet M. Denkmann
On 20 Sep 2011, at 19:51, Mike Abdullah wrote: On 20 Sep 2011, at 10:49, Gerriet M. Denkmann wrote: In my toy editor I open an existing document, modify it and click Duplicate. A Sheet comes down and tells me that the duplicate will contain my latest modifications. I click the

Re: Duplicating an edited document in 10.7.1

2011-09-20 Thread Kevin Perry
There's a bug in NSDocument in that it doesn't protect itself against nil return values from -fileNameExtensionForType:saveOperation:. To work around, make sure you return a non-nil value from that method. -KP On Sep 20, 2011, at 2:49 AM, Gerriet M. Denkmann wrote: In my toy editor I open an

Re: Duplicating an edited document in 10.7.1

2011-09-20 Thread Gerriet M. Denkmann
On 20 Sep 2011, at 22:40, Kevin Perry wrote: There's a bug in NSDocument in that it doesn't protect itself against nil return values from -fileNameExtensionForType:saveOperation:. To work around, make sure you return a non-nil value from that method. Thank you very much! Now everything