Re: NSOpenPanel Question
Re: NSOpenPanel Question
- Subject: Re: NSOpenPanel Question
- From: Steve Bird <email@hidden>
- Date: Thu, 24 Oct 2002 13:40:22 -0400
On Thursday, October 24, 2002, at 01:22 PM, brooke wrote:
Any idea what I'm doing wrong? Please cc me on replies as I'm on the
digest.
Thanks, Brooke
//
- (void)addFileToTrack:(NSString *)filename{
NSString *output = @"The following file was added to the track:";
NSLog(output);
NSLog(filename);
}
- (void)awakeFromNib
{
NSOpenPanel *op;
// declare space for an integer:
int answer;
op = [NSOpenPanel openPanel];
[op setAllowsMultipleSelection:YES];
// test if random garbage happens to be == NSOKButton:
if (answer == NSOKButton){
NSArray *filesToAdd = [op filenames];
int i, count = [filesToAdd count];
for (i=0;i<count; i++)
{
NSString *aFile = [filesToAdd objectAtIndex:i];
[self [addFileToTrack aFile]];
}
}
}
_______________________________________________
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.
----------------------------------------------------------------
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
www.Culverson.com (toll free) 1-877-676-8175
_______________________________________________
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.