Re: Possible to use Cocoa views in a Carbon window?
Re: Possible to use Cocoa views in a Carbon window?
- Subject: Re: Possible to use Cocoa views in a Carbon window?
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 20 Feb 2003 12:00:52 -0800
Dave,
There is a method:
- (NSWindow *)initWithWindowRef:(void *)windowRef
Which creates an NSWindow from a Carbon window reference. I've never
had occasion to do this, so I don't know if it will solve your
immediate need.
-jcr
On Wednesday, February 19, 2003, at 06:53 PM, Dave Camp wrote:
Is there any way I can construct an NSWindow object for an existing
Carbon WindowRef?
I'm grasping at straws here... :-)
Dave
On Wednesday, February 19, 2003, at 06:41 PM, John C. Randolph wrote:
On Wednesday, February 19, 2003, at 05:59 PM, Dave Camp wrote:
I've read the documentation for Cocoa in Carbon, which details how
to display Cocoa windows from a Cocoa bundle loaded into a Carbon
app. It's close to what I want but not quite it.
I'm writing a plug-in for a Carbon app, and the plug-in is supposed
to _add_ controls to a an existing Carbon window displayed by the
Carbon app.
Is there any way I can use Cocoa for my UI in this case, or will I
be forced to write some Carbon UI code?
Sorry, we don't have the granularity you need yet. NSViews have to
live in NSWindows in Jaguar.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
---
Among the chief weapons of UNIX: Fear, surprise and ruthless
efficiency.
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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.