From 10316c1a2e8448e5dd93a1d10c7e039115864925 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 19 Feb 2010 14:43:01 +0000 Subject: =?UTF-8?q?=E2=80=A2=20added=20the=20chance=20to=20the=20user-defi?= =?UTF-8?q?ned=20Content=20Filter=20Editor=20to=20specify=20whether=20the?= =?UTF-8?q?=20leading=20=20placeholder=20should=20be=20suppressed?= =?UTF-8?q?=20or=20not=20in=20order=20to=20be=20able=20to=20write=20a=20fi?= =?UTF-8?q?lter=20like=20"LENGTH($CURRENT=5FFIELD)>${}"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/SPContentFilterManager.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source/SPContentFilterManager.m') diff --git a/Source/SPContentFilterManager.m b/Source/SPContentFilterManager.m index 8e3fa5fe..8e79cc8e 100644 --- a/Source/SPContentFilterManager.m +++ b/Source/SPContentFilterManager.m @@ -533,6 +533,11 @@ } +- (IBAction)suppressLeadingFiledPlaceholderWasChanged:(id)sender +{ + [contentFilterTextView insertText:@""]; +} + /* * Parse clause and update labels accordingly */ @@ -568,7 +573,7 @@ [c flushCachedRegexData]; [c replaceOccurrencesOfRegex:@"(?"]; [c flushCachedRegexData]; - [resultingClauseContentLabel setStringValue:[NSString stringWithFormat:@" %@", c]]; + [resultingClauseContentLabel setStringValue:[NSString stringWithFormat:@"%@%@", ([suppressLeadingFiledPlaceholderCheckbox state] == NSOnState) ? @"" : @" ", c]]; [c release]; } -- cgit v1.2.3