Re: performClose for carbon window?
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.