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 setTitle: @"blah"]; (or something like this), but the compiler wouldn't let me send the setTitle message to the "window" variable.

I guess I shouldn't be terribly surprised since the NSDocument can actually have multiple windows associated with it, but that "window" outlet (shown when ctrl-clicking the File's Owner) was just screaming to me "use me".

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/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to