Hey everyone,
I have the following code in my program:-
	
	
	
		
When I call the function however the NSString* path is invalid when I return to the calling function?
What is going on here?
Chris
	
		
			
		
		
	
				
			I have the following code in my program:-
		Code:
	
	- (int)browseForImage:(NSString *)path
{
	int result = -1;
	NSOpenPanel * panel = [[NSOpenPanel alloc] init];
	
	[panel setAllowsMultipleSelection:false];
	result = [panel runModalForDirectory:NSHomeDirectory() file:nil types:[NSImage imageFileTypes]];
	
	if(result == NSOKButton)
	{
		path = [[[[panel filenames] objectAtIndex:0] copy] retain];
	}
	
	return result;
}
	When I call the function however the NSString* path is invalid when I return to the calling function?
What is going on here?
Chris