Changeset 2046 for trunk/ESFloater.m
- Timestamp:
- 10/21/04 22:11:14 (4 years ago)
- Files:
-
- trunk/ESFloater.m (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/ESFloater.m
r2039 r2046 22 22 23 23 // 24 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 24 + (id)floaterWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 25 25 { 26 return([[self alloc] initWithImage:inImage styleMask:styleMask ]);26 return([[self alloc] initWithImage:inImage styleMask:styleMask title:title]); 27 27 } 28 28 29 29 // 30 - (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask 30 - (id)initWithImage:(NSImage *)inImage styleMask:(unsigned int)styleMask title:(NSString *) title 31 31 { 32 32 NSRect frame; … … 44 44 backing:NSBackingStoreBuffered 45 45 defer:NO]; 46 if( title) [panel setTitle:title]; 46 47 [panel setHidesOnDeactivate:NO]; 47 48 [panel setIgnoresMouseEvents:YES]; 48 49 [panel setLevel:NSStatusWindowLevel]; 49 50 [self _setWindowOpacity:WINDOW_FADE_MIN]; 50 51 51 52 //Setup the static view 52 53 staticView = [[NSImageView alloc] initWithFrame:frame];
