• 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
carbon in cocoa sample works. almost.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

carbon in cocoa sample works. almost.


  • Subject: carbon in cocoa sample works. almost.
  • From: m <email@hidden>
  • Date: Sun, 6 Jun 2004 19:57:31 -0700

I'm working on a Cocoa app that needs Carbon windows. I was hoping to use the techniques from Apple's CarbonInCocoa sample <http://developer.apple.com/samplecode/CarbonInCocoa/ CarbonInCocoa.html> but they seem incomplete.

I need my carbon windows to be full-on, first class windows, complete with minimizability and closeability from the Close menu item. I just want them to work like Cocoa windows, a reasonable expectation.

Curiously, in Apple's CarbonInCocoa sample, the carbon window's close, minimize, and zoom buttons are disabled. So I turned them on (in the nib file) and found that the close and minimize were disabled for a reason: they don't work correctly.

Here's what's broken (that I've found so far):

- choosing close from the file menu doesn't close the carbon window

- the minimize menu item in the Window menu is disabled for the carbon window

- every other time (!) you click in the carbon window's minimize button the app seems to hang for a bit (spinning beach ball) and the window fails to minimize. If you wait for the beach ball to go away, you can again click in the minimize button and it works correctly.

I have read the relevant sections in <http://developer.apple.com/documentation/Cocoa/Conceptual/ CarbonCocoaDoc/carboncocoa.pdf> but they are silent on how to make Carbon windows first class peers with Cocoa windows.

I really need to know how to properly integrate Carbon windows in a Cocoa app. Any help appreciated.

_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.


  • Prev by Date: Re: Newbie Alert: NSMovieView with control won't update when movie changes.
  • Next by Date: Re: multiple window per document problems
  • Previous by thread: Re: Newbie Alert: NSMovieView with control won't update when movie changes.
  • Next by thread: How do I know what class sent a message?
  • Index(es):
    • Date
    • Thread