NSOpenPanel Path Problem
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.