FROM : Takashi Mochizuki
DATE : Tue Jan 22 14:45:43 2008
Qi san,
Thank you for your quick reply.
I would try it. I never thought of such idea.
Takashi Mochizuki
On 2008/01/22, at 15:53, Constantine wrote:
> mochi san,
>
> The following code may not solve your problem perfectly, but hope
> it can give you some idea:
>
> WindowRef parentWindowRef; //parentWindowRef is your parent carbon
> window, of type WindowRef
> NSWindow * parentWindow = [[NSWindow alloc]
> initWithWindowRef:parentWindowRef]; //change carbon window into
> cocoa window, of type NSWindow *
> [parentWindow addChildWindow:childWindow ordered:NSWindowAbove]; //
> childWindow is your child cocoa window, of type NSWindow *
> //...
> [NSApp runModalForWindow:childWindow];
> //...
> [parentWindow removeChildWindow:childWindow];
>
>
> =============================================
> Qi Liu
> E-Mail: <email_removed>
> --Stay Hungry. Stay Foolish.
> --You've got to find what you love.
> =============================================
>
>
DATE : Tue Jan 22 14:45:43 2008
Qi san,
Thank you for your quick reply.
I would try it. I never thought of such idea.
Takashi Mochizuki
On 2008/01/22, at 15:53, Constantine wrote:
> mochi san,
>
> The following code may not solve your problem perfectly, but hope
> it can give you some idea:
>
> WindowRef parentWindowRef; //parentWindowRef is your parent carbon
> window, of type WindowRef
> NSWindow * parentWindow = [[NSWindow alloc]
> initWithWindowRef:parentWindowRef]; //change carbon window into
> cocoa window, of type NSWindow *
> [parentWindow addChildWindow:childWindow ordered:NSWindowAbove]; //
> childWindow is your child cocoa window, of type NSWindow *
> //...
> [NSApp runModalForWindow:childWindow];
> //...
> [parentWindow removeChildWindow:childWindow];
>
>
> =============================================
> Qi Liu
> E-Mail: <email_removed>
> --Stay Hungry. Stay Foolish.
> --You've got to find what you love.
> =============================================
>
>
| Related mails | Author | Date |
|---|---|---|
| Takashi Mochizuki | Jan 22, 07:10 | |
| Constantine | Jan 22, 07:53 | |
| Takashi Mochizuki | Jan 22, 14:45 |






Cocoa mail archive

