Re: TextView problem
Re: TextView problem
- Subject: Re: TextView problem
- From: Stephane Curzi <email@hidden>
- Date: Fri, 06 Jun 2003 13:07:54 -0400
On Jeudi, juin 5, 2003, at 04:55 pm, Karl Kraft wrote:
>
Where is documentWindow declared?
It was only local declaration, I changed the NSWindow *documentWindow;
and NSTextView *textView; to put them in the MyDocument.h and
everything works.
>
> - (void)windowControllerDidLoadNib:(NSWindowController *)aController
>
> {
>
> NSWindow *documentWindow;
>
> }
>
>
That is a local declaration for that method
>
>
> printInfo:printInfo];
>
> [printOperation runOperationModalForWindow: documentWindow...
>
>
So the documentWindow here must be an instance variable
>
>
If this were true, though the compiler would have generated a warning
>
when you reused the same name as a local variable.
>
>
>
Does your code compile without warnings and errors?
Actually, I have a class really not finish so I was hiding the warning,
there was a lot of warning like this one warning: local declaration of
`documentWindow' hides instance variable I don't really understand the
warning but with your help I did figure it out.
Thank
--
Stiphane Curzi
email@hidden
http://www.projetsurbain.com/
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.