Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Integrating Cocoa AppKit and Carbon events

 
   Soft32 Home -> Mac -> Programmer Help RSS
Next:  How to execute AppleScript script in OS X ?  
Author Message
Reed Hedges

External


Since: Nov 09, 2003
Posts: 6



(Msg. 1) Posted: Fri Mar 05, 2004 4:41 am
Post subject: Integrating Cocoa AppKit and Carbon events
Archived from groups: comp>sys>mac>programmer>help (more info?)

Hi, I'm trying to use two third-party libraries is an application.
Both are open source and therefore hackable:
wxWindows^H^H^H^H^H^H^HWidgets and CrystalSpace.

wxWindows uses Carbon. CrystalSpace uses Cocoa, and specifically uses
AppKit/NSApplication to run the app and get events. Supposedly,
Cocoa and Carbon windows should be able to co-exist in a program
without any extra help, post 10.2. Any windows I open with wxWindows
(Carbon) work great, but the window that CrystalSpace (Cocoa/AppKit)
opens never recieves focus or key or mouse events. On the other hand,
CrystalSpace normally calls [NSApp run] to run the event loop, but I
have omitted the function call that does that in my application, since
it never returns.

Do I need to prevent wxWindows from entering *it's* event loop and
instead call [NSApp run], or do I need to manually grab Carbon events
from the CrystalSpace window and convert them to Cocoa NSEvents?

Thanks for any help or pointers... Need any more info let me know;
I've also posted some messages to the wx-users mailing list at
http://www.wxwindows.org.


reed
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Cocoa bundles in an XCode carbon app. - Hi, I've shifted to XCode recently from CodeWarrior (well, I'm in the process :) and I've run afoul of some build erro...

TSM events - Hi everyone, I have a problem writing a TSM aware application with Japanese script support. If I don't use bottom line...

C++ in cocoa - Hello, I read various statements in google but... Is it now possible to use c++ in "traditional" obj-c coco...

AppleScript and Cocoa - This is driving me nuts! I have a fairly simple obj-c dialog based app and I want to make it scriptable. So far I have...

Considering Cocoa Books - I'm not doing well with the existing documentation that comes with Xcode. I've also found the currency converter app t...

how to properly handle events in OS X - I have figured out how to install the necessary event handlers and how to handle those events. However, Carbon seems t...
       Soft32 Home -> Mac -> Programmer Help All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]