• 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: Cocoa UI In Carbon App Issues.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cocoa UI In Carbon App Issues.


  • Subject: Re: Cocoa UI In Carbon App Issues.
  • From: Kevin Grant <email@hidden>
  • Date: Mon, 26 May 2008 01:30:39 -0500

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Cocoa UI In Carbon App Issues.
      • From: "Vijay Malhan" <email@hidden>
References: 
 >Cocoa UI In Carbon App Issues. (From: "Vijay Malhan" <email@hidden>)

  • Prev by Date: Re: File's Owner
  • Next by Date: Re: alternate pattern for object initializers
  • Previous by thread: Cocoa UI In Carbon App Issues.
  • Next by thread: Re: Cocoa UI In Carbon App Issues.
  • Index(es):
    • Date
    • Thread