Re: Getting filename in NSDocument readFromData

2010-04-29 Thread Pascal Harris
Sometimes, I find, I get so fixated on one particular solution that I can't see the wood for the trees. Thanks for your response though - it did, at least get me thinking. So, if anyone else has the same (slightly numpty) query, the answer is to forget NSData - remember that we're talking

Re: Getting filename in NSDocument readFromData

2010-04-28 Thread Kyle Sluder
On Wed, Apr 28, 2010 at 11:37 AM, Pascal Harris <45rpmli...@googlemail.com> wrote: > How do I get the filename of the source document when using NSDocument > readFromData? Just override -readFromURL:ofType:error: instead. The documentation is quite clear about this method's implementation simply

Getting filename in NSDocument readFromData

2010-04-28 Thread Pascal Harris
How do I get the filename of the source document when using NSDocument readFromData? By and large, readFromData works excellently. My app is able to get the NSData object and process it and all works well. But now I want to write a refinement which would require my app to pass details (i.e. t