Re: NSDocument and window ivar

2008-07-27 Thread Chris Suter
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

Re: NSDocument and window ivar

2008-07-27 Thread Andy Lee
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

Re: NSDocument and window ivar

2008-07-27 Thread Alex Heinz
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

Re: NSDocument and window ivar

2008-07-27 Thread Todd Heberlein
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

Re: NSDocument and window ivar

2008-07-27 Thread Alex Heinz
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

NSDocument and window ivar

2008-07-27 Thread Todd Heberlein
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 Owner in MyDocument.xib (a document-based app), which is