• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSSavePanel problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >NSSavePanel problem (From: Michael Hanna <email@hidden>)

  • Prev by Date: NSSavePanel problem
  • Next by Date: Re: accessing filename from save in )dataRepresentationOfType:
  • Previous by thread: NSSavePanel problem
  • Next by thread: Re: accessing filename from save in )dataRepresentationOfType:
  • Index(es):
    • Date
    • Thread