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

NSOpenPanel Path Problem


  • Subject: NSOpenPanel Path Problem
  • From: "John Q." <email@hidden>
  • Date: Fri, 28 Mar 2003 10:44:20 +0100

Hi,
I have a problem with the NSOpenPanel, when I load the path from a
folder
with the NSOpenPanel in an NSTextview the path starts and ends with ("
").
In the following is my code!! Don4t laugh!! I4m a newbie!!!

Thanks
John

P.S. And I don4t understand the NSBrowser!! I would read this path in
and see the files in the Browser!!
The example in the Apple Dokumentation have not many examples and the
folder with examples is not really easy!!

- (IBAction)src_search_btn:(id)sender
{
int result;
NSString *current_src_path;

NSOpenPanel *src_oDlg = [NSOpenPanel openPanel];

[src_oDlg setCanChooseDirectories:YES];
[src_oDlg setCanChooseFiles:NO];

result = [src_oDlg runModalForDirectory:NSHomeDirectory() file:nil];
if (result == NSOKButton)
{
current_src_path = [src_oDlg filenames];
}
[src_field setStringValue:current_src_path];
}
_______________________________________________
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:
    • Stripping alpha channel from an NSImage
      • From: Ben Mackin <email@hidden>
    • Re: NSOpenPanel Path Problem
      • From: Marco Binder <email@hidden>
  • Prev by Date: Re: Is there a ready chart plotting view?
  • Next by Date: Re: Archiving and Dearchiving
  • Previous by thread: NSImage scaling not well rendered and other few things...
  • Next by thread: Re: NSOpenPanel Path Problem
  • Index(es):
    • Date
    • Thread