On 28/07/2008, at 12:26 PM, Todd Heberlein wrote:
But I cannot pass messages to the window variable. For example, I
cannot send it the "setTitle:" message.
If you're looking at changing the document title for a document you
should look at overriding NSWindowController's
windowTitleForDoc
On Jul 27, 2008, at 10:26 PM, Todd Heberlein wrote:
In the documentation for NSDocument there is a method called -
(void)setWindow:(NSWindow*)aWindow, for which aWindow is described
as "The window to which the receiver’s window outlet points."
Furthermore, if I ctrl-click on the File's Own
Ah, I see what you mean. You might try windowForSheet, and see if that
works, but you're right, it does seem strange to have an outlet that
doesn't respond. It's possible that its not an outlet directly from
the NSDocument object, but rather from one of NSDocument's instance
variables.
Al
On Jul 27, 2008, at 7:34 PM, Alex Heinz wrote:
Don't you want NSDocuments -(NSWindow*)windowForSheet: rather than -
(void)setWindow:? I assume you're trying to retrieve the object
rather than set it.
That may not be your problem, but it's the only thing I can think of
I was trying [window
Don't you want NSDocuments -(NSWindow*)windowForSheet: rather than -
(void)setWindow:? I assume you're trying to retrieve the object rather
than set it.
That may not be your problem, but it's the only thing I can think of.
Alex
On Jul 27, 2008, at 7:26 PM, Todd Heberlein wrote:
In the docum