I have a NSPanel and I need to load a file path into one of its fields. 

I'm currently using:

```
NSOpenPanel *browsePanel = [[NSOpenPanel alloc] init];
[browsePanel setCanChooseFiles:YES];
[browsePanel setCanChooseDirectories:NO];
[browsePanel setCanCreateDirectories:NO];
[browsePanel beginSheetForDirectory:nil
                               file:nil
                              types:nil
                     modalForWindow:[self window]
                      modalDelegate:self
                     didEndSelector:@selector(browsePanelPanelDidEnd:returnCode:contextInfo:)
                        contextInfo:[NSNumber numberWithInteger:[sender tag]]
 ]; 

```

But the NSOpenPanel sheet doesn't show up, and I don't get any error message in the console.
I guess it is because I'm opening it from an existing sheet and I can't load more than 1 sheet per time.

So I'm now using [browsePanel makeKeyAndOrderFront:[self window]]; but I get 2 problems:

1. the panel is always on the back of my modal sheet, I can't display it on top. Also, I can't move the focus which remains on the original sheet.
2. How do I assign the end selector, to process the data, if I don't load it modally ?

Thanks