• 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
NSOpenPanel Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSOpenPanel Question


  • Subject: NSOpenPanel Question
  • From: brooke <email@hidden>
  • Date: Thu, 24 Oct 2002 13:22:33 -0400

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;
int answer;
op = [NSOpenPanel openPanel];
[op setAllowsMultipleSelection:YES];

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.

  • Follow-Ups:
    • Re: NSOpenPanel Question
      • From: Steve Bird <email@hidden>
  • Prev by Date: Re: Invisible Characters
  • Next by Date: Re: NSString RTF
  • Previous by thread: Re: Invisible Characters
  • Next by thread: Re: NSOpenPanel Question
  • Index(es):
    • Date
    • Thread