Re: NSSavePanel problem
Re: NSSavePanel problem
- Subject: Re: NSSavePanel problem
- From: Tom Sutcliffe <email@hidden>
- Date: Thu, 1 May 2003 16:40:54 +0100
You want [fileSaver filename] not theFilename.
Regards,
Tom (who's finally remembered what email he's subscribed to this list
under!)
On Thursday, May 1, 2003, at 04:20 pm, Michael Hanna wrote:
Hi, this code:
- (IBAction)browseOutput:(id)sender
{
NSSavePanel * fileSaver = [NSSavePanel savePanel];
if([fileSaver runModal]){
NSString * theFilename = [fileSaver theFilename];
[outputFileName setStringValue:theFilename];
}
}
results in a run-time error:
2003-05-01 11:11:31.161 Vox Coder[2242] *** -[NSSavePanel
theFilename]: selector not recognized
2003-05-01 11:11:31.293 Vox Coder[2242] *** -[NSSavePanel
theFilename]: selector not recognized
My NSTextField outlet in IB seems connected to this controller class
and the name is bound in the .h file(including the capital 'N' in
outputFileName).
I honestly am not sure why the output name isn't printing in the
NSTextField after I enter a name in the NSSavePanel...
any ideas?
Michael
_______________________________________________
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.
_______________________________________________
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.