[Mono-osx] MonoMac - FileRegistration - FileOpen best practices
andywhitt at gmail.com
Wed Jun 1 12:31:49 EDT 2011
Sorry I'm new to developing on OSX and wondered if you could give me a little
help. Coming from a Windows environment I'm used to double clicking on a
registered filetype and a new process starting. This doesn't appear to be
the case with OSX, so I was wondering how best to handle this.
For example, my application is registered with launchservices for ".trip"
files (VIEWER), when this ".trip" file is double clicked I want to start a
new NSWindowController. But creating a new View controller on the FileOpen
results in a crash, (something to do with same thread I think) e.g
public override bool OpenFile (NSApplication sender, string filename)
System.Console.WriteLine("OpenFile " +filename);
var mainWindowController = new MainWindowController(filename);
I wondered what was the correct practice for opening multiple files? I
looked at the Document Preset but thats not quite right for me, as my files
arnt documents as such.
View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-FileRegistration-FileOpen-best-practices-tp3566269p3566269.html
Sent from the Mono - OSX mailing list archive at Nabble.com.
More information about the Mono-osx