• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Universally available widgets
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Universally available widgets (From: Sam Goldman <email@hidden>)

  • Prev by Date: Re: Database Access
  • Next by Date: Programmatically add NSViews
  • Previous by thread: Re: Universally available widgets
  • Next by thread: Bug? ".keyboard" NSString returned from [NSFontManager availableFonts]?
  • Index(es):
    • Date
    • Thread