At least in my case, I use Option+Close in my Carbon+Cocoa app and I
don't see a crash.  (This closes all Cocoa windows and leaves the
Carbon ones alone.)

See if your Cocoa wrapper functions have forgotten any autorelease
pools, which can cause a crash when Carbon calls the functions.

What version of Mac OS X has hangs?  I've seen the odd hang on Panther,
but nothing on Leopard.

If the menus are still Carbon based, then I would expect key events
to be trapped and discarded, and converted into "command events" (a
Carbon concept).  So "Copy" isn't bound to anything in a Carbon menu,
there would have to be a switch somewhere that tests kHICommandCopy
and invokes a Cocoa method like [NSApp writeSelectionToPasteboard].
Maybe Apple's default handler does this, I doubt it; but you could
double-check command handlers to ensure the default handler is called.

Kevin G.



Hi All,I've implemented a Cocoa UI (as a plugin), in a legacy Carbon App. It
is a palette implementation.
There are many usability issues related to it. Few of them are like:
- Keyboard events loss.
- Key selection on Menu's, doesn't work.
- Mouse Cursor update event loss.
- Option + Close (Close All) crash.
- Print dialog hang.
- many more...
Most of these, I've fixed via different workarounds and for rest I've filed
bug-report.

There is one issue though, I need to fix urgently:
- Inability to use short-cut key's(Cut, Copy, Paste) on Cocoa controls in a
Carbon App.
Typical use-case failure's are like: Unable to Select All (Cmd+A) in an
out-line view. No cut-copy-paste on cocoa text-fields etc.
Mouse-Right-Click for edit commands is working.

I'm looking for a workaround for this?
Thanks in Advance.

Note: One can use CocoaInCarbon sample by Apple to reproduce this issue.
link : http://developer.apple.com/samplecode/CocoaInCarbon/

Vijay
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to