Hello,

first of all I do not know if it is correct to send this message to you.
I allready posted my question to discussions.apple.com but it seems that nobody knows an answer.

By the way: after posting the message to discussions.apple.com some characters were removed (brackets and some more characters). I do not know why and how to correct this (so these characters are not removed the next time I post a message).
Any hint would be very nice.

------------

I am writing a plugin for FileMaker (which seems to be a Carbon application). The plugin is based on Cocoa. I want to display a modal dialog. So I am using this code for a subclass of NSWindowController:

- (void)showModalDialog
{
        NSApplication *_app;
        NSWindow *_window;
        
        [self showWindow:nil];
        _app = [NSApplication sharedApplication];
        _window = [self window];
        [_app runModalForWindow:_window];
}

The modal dialog (displayed this way) blocks everything - it is not possible to close the modal dialog, hit any button or something else. Even worse - if I deactivate FileMaker and activate it again then my preference dialog is behind the FileMaker preference dialog.

I even tried to call NSApplicationLoad...

My question: how can I get a sharedApplication in Cocoa if the Application itself is based on Carbon? Is this possible at all (or do I have to write my plugin based on Carbon)?

Cheers
Martin Brodhage

P.S. My alias in discussions.apple.com is mbrodhage - same as for developer.apple.com.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to