From b5c4f326fb175499d0b837cb325b9eeea676fb4f Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 19 Nov 2010 10:29:42 +0000 Subject: =?UTF-8?q?=E2=80=A2=20Bundle=20Editor=20-=20fixed=20saving=20and?= =?UTF-8?q?=20duplicating=20Bundles=20if=20Bundle=20contains=20other=20fil?= =?UTF-8?q?es/folder=20-=20fixed=20adding=20a=20new=20Bundle=20-=20added?= =?UTF-8?q?=20gui=20tooltips=20=E2=80=A2=20SPTooltip=20-=20if=20no=20locat?= =?UTF-8?q?ion=20was=20passed=20and=20first=20responder=20isn't=20a=20text?= =?UTF-8?q?View=20show=20the=20tooltip=20at=20the=20mouse=20location=20?= =?UTF-8?q?=E2=80=A2=20CopyTable=20-=20show=20tooltip=20invoked=20by=20a?= =?UTF-8?q?=20Bundle=20command=20always=20at=20mouse=20location=20?= =?UTF-8?q?=E2=80=A2=20Content=20/=20Custom=20Query=20Table=20-=20suppress?= =?UTF-8?q?=20tooltip=20of=20cell=20content=20if=20another=20tooltip=20(ma?= =?UTF-8?q?inly=20displayed=20by=20a=20Bundle)=20is=20visible=20[shoudl=20?= =?UTF-8?q?be=20improved=20since=20iterating=20through=20the=20window=20li?= =?UTF-8?q?st=20isn't=20so=20good]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPTooltip.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Source/SPTooltip.m') diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m index f35dc155..e1cccbf9 100644 --- a/Source/SPTooltip.m +++ b/Source/SPTooltip.m @@ -268,10 +268,13 @@ static CGFloat slow_in_out (CGFloat t) return pos; // Otherwise return the upper left corner of the current keyWindow } else { - pos = [[NSApp keyWindow] frame].origin; - pos.x += 5; - pos.y += [[NSApp keyWindow] frame].size.height - 23; + pos = [NSEvent mouseLocation]; + pos.y -= 16; return pos; + // pos = [[NSApp keyWindow] frame].origin; + // pos.x += 5; + // pos.y += [[NSApp keyWindow] frame].size.height - 23; + // return pos; } } @@ -280,6 +283,7 @@ static CGFloat slow_in_out (CGFloat t) // =========== - (void)setContent:(NSString *)content withOptions:(NSDictionary *)displayOptions { + NSString *fullContent = @"" @"" @"