Hi guys,
I have a document window, and a toolbar item, in which you click it opens another window. This window knows which document it came from, since NSDocument seems to provide this if its in the same nib, which it is.
So my question is, I want to get the current document name from the document, and put the filename of the document as the title of the other window.
I tried setTitle:[self filename] that didn't work. I also tried setTitleWithRepresentedFilename:, but I could not get it working right, I also read on cocoa.mamasam.com that this method was broken, is that true?
Any code is helpful
Thanks,
Oliver