• 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: performClose for carbon window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: performClose for carbon window?


  • Subject: Re: performClose for carbon window?
  • From: m <email@hidden>
  • Date: Tue, 8 Jun 2004 14:32:48 -0700

Starting off with a Cocoa window, rather than a Carbon window around which an NSWindow is wrapped, does result in performClose working as expected.

However, any Carbon controls placed in this window do not respond to any events. Presumably this has something to do with the window not having the proper Carbon event handlers installed, but I tried installing the standard window event handler and this sis not help.

Stumped.

_murat

On Jun 8, 2004, at 3:40 AM, Sam McCandlish wrote:

Maybe it would be better if you created the NSWindow first from a nib (so cocoa could initialize it) then took the windowRef from it:

WindowRef carbonWindowRef = [someIBOutletToAWindow windowRef];

Then Cocoa would be the one to initialize it and everything might work better...

On Jun 8, 2004, at 4:35 AM, m wrote:

When I call performClose: for an NSWindow that has a carbon based window ref, the window doesn't close and the app just beeps.

I am creating the NSWindow like this:

WindowRef carbonWindowRef = [self loadCarbonWindowFromNib];
NSWindow* carbonBasedCocoaWindow = [[NSWindow alloc] initWithRef: carbonWindowRef];

How can I get it to work?

_murat
_______________________________________________
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.
_______________________________________________
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.
_______________________________________________
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.


References: 
 >performClose for carbon window? (From: m <email@hidden>)
 >Re: performClose for carbon window? (From: Sam McCandlish <email@hidden>)

  • Prev by Date: Re: Panther's NSScreen vs. screen resolution changes
  • Next by Date: NSTextView with top indent
  • Previous by thread: Re: performClose for carbon window?
  • Next by thread: Binding a pop-up menu to a dictionary in a tableColumn
  • Index(es):
    • Date
    • Thread