Carbon sheet making my Cocoa window unmovable - any resolution?
Carbon sheet making my Cocoa window unmovable - any resolution?
- Subject: Carbon sheet making my Cocoa window unmovable - any resolution?
- From: Daniel Morrow <email@hidden>
- Date: Tue, 26 Oct 2004 09:47:56 -0400
Hi,
I saw a thread about this a month or so ago, but I never saw a
solution. Maybe there is none.
Someone wanted to put up a carbon sheet in a cocoa window. This
appeared to work, but the main Cocoa window would become unmovable
while the sheet was up. And also after, until the user resized the
window, or twiddled the toolbar.
I was wondering if whoever posted this originally found any workarounds
for this. I would like to put up a Carbon sheet in a Cocoa window.
Mainly, because there is no date control in Cocoa, and I really need
one. So, I had to make a Carbon window.
Ideally, I'd like to make this a sheet, but if there's still no way to
do this, then so be it. Right now, I'm getting the WindowRef of the
Cocoa window, and then calling "ShowSheetWindow/HideSheetWindow" with
my Carbon window.
I considered using Cocoa's "beginSheet:modalForWindow --- " routine, by
getting an NSWindow from the Carbon window, but I wasn't sure how the
event processing would work in this situation.
Anyway, if anything else was found out about how to get around this
situation, I'd be grateful.
Thanks,
-Dan.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden