Subclass NSApplication in Carbon App?
Subclass NSApplication in Carbon App?
- Subject: Subclass NSApplication in Carbon App?
- From: David Bainbridge <email@hidden>
- Date: Sun, 30 May 2004 22:25:46 -0500
Is it possible to subclass NSApplication when using Cocoa in a Carbon
app? I have set the principal class in xcode to my NSApp's subclassed
class and see it in the info.plist of the bundle but the methods I try
to override are not being called. I have a feeling there is something
going on within NSApplicationLoad that is used to init the Cocoa
environment when using it from a Carbon app...
I need to do this to override sendevent method to prevent mouse click
to the carbon windows behind it.. If I use runModalForWindow to
automatically prevent this to begin with then I am unable to display a
second "modal" cocoa window on top of the 1st modal cocoa window..
I know this is not the proper gui methodology but I am forced to do it
this way to integrate cocoa into this antiquated CFM app..
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.