Carbon-in-cocoa dialog and Edit menu
Carbon-in-cocoa dialog and Edit menu
- Subject: Carbon-in-cocoa dialog and Edit menu
- From: Christopher Corbell <email@hidden>
- Date: Mon, 25 Aug 2003 16:50:10 -0700
I hope the cross-posting's appropriate, I'm not sure whether the
solution I'm seeking will be Carbon or Cocoa.
The app I'm working on has been mostly ported to Cocoa, however a
few modal dialogs are still Carbon (mach-o, carbon-events-driven).
The bug appears in a Carbon modal dialog which contains a
Carbon DataBrowser control. The DataBrowser comes up with the
keyboard focus etc., and everything works, except that all
menu items - including Edit menu items - are disabled. So you can't
hit command-A to select all items in the data browser.
(Note: the main menu is a Cocoa NSMenu).
However, if you click in the Edit menu with the mouse, the
Select All (and Deselect All) items become enabled, and at
this point they work properly for items in the modal dialog's
Data Browser. This gives me hope that I can get by without
porting the whole dialog to Cocoa for my current project cycle.
However nothing I've tried so far has managed to enable these
items before a mouse-down in the Edit menu occurs.
FWIW I've tried wrapping the Carbon WindowRef in
NSWindow and calling makeKeyAndOrderFront etc, I tried a custom
NSResponder subclass owned by the Carbon dialog, and I also
tried explicitly enabling these two menu items (temporarily
turning off autoenabling) before the carbon modal loop is run.
None of these Cocoa approaches have worked, and I'm also
-not- getting Carbon updateCommandStatus events in my window controller.
Any ideas?
TIA,
Christopher
_______________________________________________
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.