|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
I am in the process of wrapping Objective-C/Cocoa code into a Mach-O framework that I will call into from my Carbon app. Is this how you are doing it? If not, is there a different or better way?
I created a Cocoa Bundle - which I load into my Carbon app. I just followed these instructions...
2) When I receive an event through a WebView delegate I do not exactly know what the best way is to inform my Carbon app. Today I create a command event with some parameters and send it to my app. Is this the nicest way to go? How can I do this more elegant.
What exactly do you mean by "command event"?
I ment the other way arround - receiving events from the Cocoa WebKit. Something like this (out of my Cocoa Bundle):
// Event senden BlockZero(&aCommand, sizeof(aCommand)); aCommand.attributes = kHICommandFromControl; aCommand.source.control = theCarbonRef; aCommand.commandID = theCommandID;
(void) CreateEvent( NULL, kEventClassCommand, kEventCommandProcess, GetCurrentEventTime(), kEventAttributeUserEvent, &anEvent ); (void) SetEventParameter( anEvent, kEventParamDirectObject, typeHICommand, sizeof(aCommand), &aCommand ); (void) SendEventToApplication(anEvent); (void) ReleaseEvent(anEvent); }
Best, Marcel _______________________________________________ webkitsdk-dev mailing list | email@hidden Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/webkitsdk-dev Do not post admin requests to the list. They will be ignored.
Visit the Apple Store online or at retail locations.
Copyright © 2011 Apple Inc. All rights reserved.