Re: NSSavePanel can't enter filename
Re: NSSavePanel can't enter filename
- Subject: Re: NSSavePanel can't enter filename
- From: Andreas Mayer <email@hidden>
- Date: Mon, 31 May 2004 14:56:49 +0200
Am 31.05.2004 um 13:56 schrieb Robert Kuilman:
NSSavePanel * savePanel = [NSOpenPanel savePanel];
Even though you are telling the compiler savePanel was an NSSavePanel,
you do, in fact, create an NSOpenPanel. The reason [NSOpenPanel
savePanel] works at all, is because NSOpenPanel is a subclass of
NSSavePanel and therefor understands the savePanel message.
Just use this instead:
NSSavePanel *savePanel = [NSSavePanel savePanel];
Andreas
_______________________________________________
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.