Re: Newbie question: floating windows/panels
Re: Newbie question: floating windows/panels
- Subject: Re: Newbie question: floating windows/panels
- From: Evan Gross <email@hidden>
- Date: Fri, 12 Apr 2002 20:36:29 -0400
On 4/12/02 8:30 PM, "Afonso Salcedo" <email@hidden> wrote:
>
First of all, I am terribly sorry for asking this in this list, but I
>
spent hours searching the archives, google and just about anything else
>
and couldn't find a solution.
>
>
Basically, I'm developing a small Cocoa Application, with one NSPanel. I
>
want this NSPanel to be floating, so I made this an Utility panel.
>
Everything is implemented and working as expected.
>
The panel only has buttons, nothing else. Each button performs a
>
different function.
>
>
Now what I really want to do is, when the user is running some app and
>
clicks one of the buttons, I want it NOT to change the focus to my
>
application, instead remaining on whatever the user was.
>
>
I've tried subclassing NSWindowController to call
This is basically a "problem" (I'd call it a bug) with the way utility
panels work in Cocoa. I wasn't able to find any sort of work-around, so had
to implement mine with a Carbon utility window, created from a Carbon nib
file, assigned to NSWindow via -initWithWindowRef. Quite a pain to
implement, but it does work properly.
Evan Gross
Rainmaker Research Inc.
_______________________________________________
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.