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

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.

References: 
 >NSOpenPanel Question (From: brooke <email@hidden>)

  • Prev by Date: Re: NSString RTF
  • Next by Date: Re: Interface builder can't see my Java Library anymore in Jaguar
  • Previous by thread: NSOpenPanel Question
  • Next by thread: Re: NSString RTF
  • Index(es):
    • Date
    • Thread