undocumented classes
undocumented classes
- Subject: undocumented classes
- From: Alexander Cohen <email@hidden>
- Date: Tue, 18 Nov 2003 00:14:39 -0500
I know this is wrong and i should not do this, but for now, i need to.
I found this interface in the WebKit framework:
@interface HIViewAdapter:NSView
{
}
+ (void)bindHIViewToNSView:(struct OpaqueControlRef *)fp8 nsView:fp12;
+ (struct OpaqueControlRef *)getHIViewForNSView:fp8;
+ (void)unbindNSView:fp8;
- initWithFrame:(struct _NSRect)fp8 view:(struct OpaqueControlRef
*)fp24;
- (void)setNeedsDisplay:(char)fp8;
- (void)setNeedsDisplayInRect:(struct _NSRect)fp8;
- nextValidKeyView;
@end
I would like to use this since i want to use a cocoa subclass of a
WebView and return it as a HIViewRef to a carbon app a bit like
HIWebViewCreate().
How do i use the HIViewAdapter class that i found here? I tried putting
the interface in my header files in my cocoa project, but i got erros
when calling this:
OSStatus HITMSWebViewCreate( HIViewRef * outControl )
{
OSStatus err = noErr;
WebView * webview = [[TMSWebView alloc] initWithFrame: NSMakeRect
(0,0,0,0)];
*outControl = [HIViewAdapter getHIViewForNSView:webview];
//err = HIWebViewCreate( outControl );
return err;
}
How can i get this to work? I just want to be able to call
[HIViewAdapter getHIViewForNSView:webview]; and have it go through and
get the implementation in the WebKit.framework.
thanx
--
Alexander Cohen
http://www.toomuchspace.com
(819) 348-9237
(819) 432-3443
_______________________________________________
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.