Re: Universally available widgets
Re: Universally available widgets
- Subject: Re: Universally available widgets
- From: Jim Correia <email@hidden>
- Date: Tue, 29 Jan 2002 11:41:13 -0500
On Tuesday, January 29, 2002, at 04:22 AM, Sam Goldman wrote:
Has anyone noticed that, when collapsed, the iTunes window allows for
interaction with certain widgets (i.e. Volume, Back, Play/Pause,
Forward)
even when in the background?
The peculiar behavior is that the widgets also track in the background
(like the window titlebar widgets) without bringing the window forward.
This feels funny, especially if the control window is partially
obscured, so I'd advise against doing this unless you've got a really
good reason/use for it.
Can this be done in Cocoa? I don't think that the window is a floating
panel, because other windows can go on top of it. I hope it isn't a
Carbon
only thing (I think iTunes is Carbon...)!
iTunes is indeed Carbon. Carbon does this with click activation Carbon
event handlers. Looking through the Cocoa docs it would appear that you
can get the same thing to happen with
NSView subclass
- (BOOL)acceptsFirstMouse:(NSEvent *)theEvent;
- (BOOL)shouldDelayWindowOrderingForEvent:(NSEvent *)theEvent;
send NSApplication message
- (void)preventWindowOrdering;
Jim