• 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: Sam McCandlish <email@hidden>
  • Date: Tue, 8 Jun 2004 06:40:56 -0400

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.


  • Follow-Ups:
    • Re: performClose for carbon window?
      • From: m <email@hidden>
References: 
 >performClose for carbon window? (From: m <email@hidden>)

  • Prev by Date: Best Practice for implementing NSUndoManager?
  • Next by Date: NSButton's setKeyEquivalent and arrow keys
  • Previous by thread: performClose for carbon window?
  • Next by thread: Re: performClose for carbon window?
  • Index(es):
    • Date
    • Thread