• 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: Robert Fischer <email@hidden>
  • Date: Tue, 30 Jul 2002 10:57:14 +0200

On Monday, July 29, 2002, at 08:23 PM, Raymund Beyer wrote:


Does anyone have an idea why?


NSLog (@"\nfileNames:%@\nfileTypes:%@\npath:", fileNames, fileTypes,
path);

Oh yes, after trying this code myself and also wondering what is happening I found the beast in the NSLog statement: you missed one %@ after path:! Oh boy ;-)

BTW: you should watch out for warnings (not with the NSLog statement, though) and you may write
NSMutableArray *fileTypes = [NSMutableArray arrayWithObjects: @"rtf", nil];


Robert

--
--- - .-. -- --
--- / \ ---- Robert Fischer
.-. / \ --- .-. __o .-. @
/ \ / \ / \ _`\<,_ / \ berlin.de
/ \ / \ / \ (*)/ (*) / `--------------
/ `---' `-' `-----------'
_______________________________________________
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: Raymund Beyer <email@hidden>
References: 
 >NSOpenPanel question (From: Raymund Beyer <email@hidden>)

  • Prev by Date: Re: maximize and new
  • Next by Date: Re: Rearranging NSWindows
  • Previous by thread: NSOpenPanel question
  • Next by thread: Re: NSOpenPanel question
  • Index(es):
    • Date
    • Thread