Re: NSDocument and window ivar
Re: NSDocument and window ivar
- Subject: Re: NSDocument and window ivar
- From: Todd Heberlein <email@hidden>
- Date: Sun, 27 Jul 2008 19:53:35 -0700
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