• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSApplication in Carbon application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSApplication in Carbon application


  • Subject: NSApplication in Carbon application
  • From: brodhage <email@hidden>
  • Date: Wed, 10 Sep 2008 11:18:15 +0200

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 (email@hidden)

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:
This email sent to email@hidden


  • Prev by Date: Re: Problems with Key Observing Registration Performance
  • Next by Date: Re: Problems with Key Observing Registration Performance
  • Previous by thread: Re: Multiple Document types
  • Next by thread: Best approach to long running tasks.
  • Index(es):
    • Date
    • Thread