Re: NSDocument and window ivar
Re: NSDocument and window ivar
- Subject: Re: NSDocument and window ivar
- From: Alex Heinz <email@hidden>
- Date: Sun, 27 Jul 2008 19:58:59 -0700
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.
Alex
On Jul 27, 2008, at 7:53 PM, Todd Heberlein wrote:
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 (email@hidden)
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:
This email sent to email@hidden