• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Possible to use Cocoa views in a Carbon window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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:07:36 -0800

On Thursday, February 20, 2003, at 12:08 AM, email@hidden wrote:

On jeudi, fivrier 20, 2003, at 03:53 AM, Dave Camp wrote:

Is there any way I can construct an NSWindow object for an existing Carbon WindowRef?

Yes.

initWithWindowRef:

- (NSWindow *)initWithWindowRef:(void *)windowRef
Creates an NSWindow for a Carbon window. windowRef must be a Carbon WindowRef. For more information see MacWindows.h.

See Also: - windowRef

I just asked someone in frameworks engineering about this, and was told:

this doesn't actually support what the developer is looking for. Although we do allow creating an NSWindow for a WindowRef, or vice versa, this does not really support the granularity of putting an NSView in a Carbon window. Even if you do create an NSWindow for a WindowRef, event routing and drawing are still done by the WindowRef.

If you need this capability, you should file a feature request at bugreporter.apple.com.

Integrating Carbon and Cocoa is a work in progress... More on this as it develops.

-jcr

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.

  • Follow-Ups:
    • Re: Possible to use Cocoa views in a Carbon window?
      • From: Chris Ryland <email@hidden>
References: 
 >Re: Possible to use Cocoa views in a Carbon window? (From: email@hidden)

  • Prev by Date: Re: Possible to use Cocoa views in a Carbon window?
  • Next by Date: Re: Possible to use Cocoa views in a Carbon window?
  • Previous by thread: Re: Possible to use Cocoa views in a Carbon window?
  • Next by thread: Re: Possible to use Cocoa views in a Carbon window?
  • Index(es):
    • Date
    • Thread