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 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 of class MyDocument (subclass of NSDocument), it *does* show the window outlet there and it *does* show it pointing to the window.

But I cannot pass messages to the window variable. For example, I cannot send it the "setTitle:" message.

Have I gone bonkers? Am I doing something wrong? For now I just added another IBOutlet for NSWindow in MyDocument class and have that connected up, but this seems like a kludge to have two outlets pointing to the same object.

Any words of wisdom?

Todd

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/aheinz2%40johnshopkins.edu

This email sent to [EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to