Show
Ignore:
Timestamp:
10/21/04 22:11:14 (4 years ago)
Author:
timothy
Message:

Add the title to the dragged tab window.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ESFloater.m

    r2039 r2046  
    2222 
    2323// 
    24 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 
     24+ (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 
    2525{ 
    26     return([[self alloc] initWithImage:inImage styleMask:styleMask]); 
     26    return([[self alloc] initWithImage:inImage styleMask:styleMask title:title]); 
    2727} 
    2828 
    2929// 
    30 - (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 
     30- (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 
    3131{ 
    3232    NSRect  frame; 
     
    4444                                         backing:NSBackingStoreBuffered 
    4545                                           defer:NO]; 
     46        if( title) [panel setTitle:title]; 
    4647    [panel setHidesOnDeactivate:NO]; 
    4748    [panel setIgnoresMouseEvents:YES]; 
    4849    [panel setLevel:NSStatusWindowLevel]; 
    4950    [self _setWindowOpacity:WINDOW_FADE_MIN]; 
    50      
     51 
    5152    //Setup the static view 
    5253    staticView = [[NSImageView alloc] initWithFrame:frame];