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/SPCopyTable.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Source/SPCopyTable.m') diff --git a/Source/SPCopyTable.m b/Source/SPCopyTable.m index 045d7856..48aa62f7 100644 --- a/Source/SPCopyTable.m +++ b/Source/SPCopyTable.m @@ -898,13 +898,15 @@ NSInteger MENU_EDIT_COPY_AS_SQL = 2003; if([[cmdData objectForKey:SPBundleFileOutputActionKey] length] && ![[cmdData objectForKey:SPBundleFileOutputActionKey] isEqualToString:SPBundleOutputActionNone]) { NSString *action = [[cmdData objectForKey:SPBundleFileOutputActionKey] lowercaseString]; + NSPoint pos = [NSEvent mouseLocation]; + pos.y -= 16; if([action isEqualToString:SPBundleOutputActionShowAsTextTooltip]) { - [SPTooltip showWithObject:output]; + [SPTooltip showWithObject:output atLocation:pos]; } else if([action isEqualToString:SPBundleOutputActionShowAsHTMLTooltip]) { - [SPTooltip showWithObject:output ofType:@"html"]; + [SPTooltip showWithObject:output atLocation:pos ofType:@"html"]; } } } else { -- cgit v1.2.3