DekGenius.com
[ Team LiB ] Previous Section Next Section

NSPanel Mac OS X 10.0

This subclass extends the functionality of NSWindow that is useful for auxiliary and utility windows. In particular, panels are different from windows in several key ways. First, NSPanels adopt the behavior that by default the panel will hide itself when its application becomes inactive. Second, NSPanels are capable of becoming key windows, but they may never have main window status. Additionally, NSPanel object can be made to float above all other windows, making their contents easily accessible when other windows are in front.

figs/cocn_1566.gif

@interface NSPanel : NSWindow
 // Accessor Methods
   - (void)setFloatingPanel:(BOOL)flag;
   - (void)setBecomesKeyOnlyIfNeeded:(BOOL)flag;
   - (BOOL)becomesKeyOnlyIfNeeded;
   - (void)setWorksWhenModal:(BOOL)flag;
   - (BOOL)worksWhenModal;
 // Instance Methods
   - (BOOL)isFloatingPanel;

Subclasses

NSColorPanel, NSFontPanel, NSSavePanel

    [ Team LiB ] Previous Section Next Section