Re: TextView problem
Re: TextView problem
- Subject: Re: TextView problem
- From: Karl Kraft <email@hidden>
- Date: Thu, 5 Jun 2003 15:55:59 -0500
Where is documentWindow declared?
On Thursday, Jun 5, 2003, at 15:07 US/Central, Stephane Curzi wrote:
Hi,
I have this code, almost everything works ok. I cant load text, write
text but I can't save or print, can someone help me here ?
- (void)windowControllerDidLoadNib:(NSWindowController *)aController
{
NSWindow *documentWindow;
...
}
That is a local declaration for that method
- (void)printDocument:(id)sender {
NSPrintInfo * printInfo = [self printInfo];
NSPrintOperation * printOperation;
printOperation = [NSPrintOperation
printOperationWithView:textStorage
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?
--
To purchase it is not like spending money
but rather it is an investment in the future
in a blow against the empire
_______________________________________________
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.