PB and documents
PB and documents
- Subject: PB and documents
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Thu, 31 Jan 2002 11:28:03 +0100
I have a file named MyClass.m, which I open in PB and also in
MyEditor.app.
Then I modify MyClass.m in PB and save it.
Then I click on the window in MyEditor.app. Whenever this becomes main,
MyEditor checks the modification date and proposes to reload the file.
This happens, and I instruct it to reload the modified MyClass.m.
So far so good.
Now I do a "Save" in MyEditor.app. And up comes a panel:
"The location of the document "MyClass.m" cannot be determined. You can
specify where to save it."
This panel has a "Save As..."-button, and when I hit this, I get a
Save-Panel with all the information already correctly filled in. (So it
did know, where to save the file. It really only wants to annoy me).
I just hit return.
Another panel comes up: "Save. The file MyClass.m in
/Users/.../SomeProject already exists. Replace it?"
Hit return again.
All very good, but rather unneccessary and tedious.
Also, when I use some other editor (e.g. TextEdit) to modify the
document behind the back of MyEdit.app, a Save works fine, whithout any
of these tedious Panels.
What very special evel things does PB to my files?
How can I convince MyEdit.app that it really does know, where to store
this file?
MyEdit.app is a very simple document based application, using subclasses
of NSDocument, and a standart NSDocumentController.
And if this is again something to do with alias: Is there some document
on my hard-disk which teaches about the alias-concept?
Gerriet.