Setting file for an NSDocument

  • Hi, I have a programatically created NSDocument and I happen to know
    that
    its data corresponds to a given file on the disk. So I would like to
    associate
    that file to the document. I tried calling setFileURL and it almost
    works. It
    changes the title of the window and sets the little proxy icon
    correctly. However,
    it doesn't do exactly what I want, since the "Save" function is then
    disabled.
    If I make changes to the document, I have to choose "Save As"
    instead. Any
    idea on how to properly associate a file with a given document?
    Thanks in
    advance for any hint. Regards,

    Martin

    HairerSoft
    http://www.hairersoft.com/
previous month october 2006 next month
MTWTFSS
            1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31          
Go to today