SLFloatingMark


Inherits From:
NSView
Declared In:
SLFloatingMark.h


Class Description

SLFloatingMark is something like a tool tip. It can be with an image or a text string. Floating marks are semi transparent and overall look like tool tips.


Instance Variables

NSImage *image;
NSString *text;

imageNo description.
textNo description.


Method Types

- initWithImage:
- initWithLabel:
- close:
- fadeOut:
- positionAt:
- setLabel:

Instance Methods

close:

- (void)close:(id)sender

Closes the floating window. There is no way to bring it back.


fadeOut:

- (void)fadeOut:(id)sender

Fades the window before closing it.


initWithImage:

- (id)initWithImage:(NSString*)imageName

No method description.


initWithLabel:

- (id)initWithLabel:(NSString*)label

No method description.


positionAt:

- (void)positionAt:(NSPoint)screenPoint

Positions the floating mark on screen.


setLabel:

- (void)setLabel:(NSString*)label

Sets a new label. Setting a label removes a prior set image. The size changes also.


Version 1.1 Copyright ©2001 by Stefan Leuker. All Rights Reserved.