|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Usage:
#import "SPTooltip.h"
[SPTooltip showWithObject:@"<h1>Hello</h1>I am a <b>tooltip</b>" ofType:@"html"
displayOptions:[NSDictionary dictionaryWithObjectsAndKeys:
@"Monaco", @"fontname",
@"#EEEEEE", @"backgroundcolor",
@"20", @"fontsize",
@"transparent", @"transparent", nil]];
[SPTooltip showWithObject:(id)content
atLocation:(NSPoint)point
ofType:(NSString *)type
displayOptions:(NSDictionary *)displayOptions]
content: a NSString with the actual content
point: n NSPoint where the tooltip should be shown
if not given it will be shown under the current caret position or
if no caret could be found in the upper left corner of the current window
type: a NSString of: "text", or "html"; no type - 'text' is default
displayOptions: a NSDictionary with the following keys (all values must be of type NSString):
fontname, fontsize, backgroundcolor (as #RRGGBB), transparent (any value)
if no displayOptions are passed or if a key doesn't exist the following default
are taken:
"Lucida Grande", "10", "#F9FBC5", NO
See more possible syntaxa in SPTooltip to init a tooltip
|