[ruleeditor commit] r100 - branches/CPRuleEditor

0 views
Skip to first unread message

codesite...@google.com

unread,
Feb 1, 2009, 6:03:46 AM2/1/09
to psruleedit...@googlegroups.com
Author: cacaodev
Date: Sun Feb 1 02:56:18 2009
New Revision: 100

Modified:
branches/CPRuleEditor/AppController.j
branches/CPRuleEditor/CPRuleEditor.j

Log:
class name RuleEditor > CPRuleEditor

Modified: branches/CPRuleEditor/AppController.j
==============================================================================
--- branches/CPRuleEditor/AppController.j (original)
+++ branches/CPRuleEditor/AppController.j Sun Feb 1 02:56:18 2009
@@ -78,7 +78,7 @@
var theWindow = [[CPWindow alloc] initWithContentRect:CGRectMakeZero()
styleMask:CPBorderlessBridgeWindowMask],
contentView = [theWindow contentView];

- ruleEditor = [[RuleEditor alloc]
initWithFrame:CGRectMake(0,0,600,200)];
+ ruleEditor = [[CPRuleEditor alloc]
initWithFrame:CGRectMake(0,0,600,200)];
[ruleEditor setAutoresizingMask:CPViewMaxXMargin ];

var datasource = [[RuleDelegate alloc] init];
@@ -90,8 +90,7 @@

[contentView addSubview:ruleEditor];
[ruleEditor addRow:self];
- [self refresh:[ruleEditor predicate]];
-/*
+ /*
var button = [[CPButton alloc]
initWithFrame:CGRectMake(610,20,100,20)];
[button setAction:@selector(addRow:)];
[button setTarget:ruleEditor];
@@ -122,8 +121,9 @@
[theWindow orderFront:self];
}

--(void)refresh:predicate{
-[textField setStringValue:[predicate predicateFormat]];
+-(void)refresh:(CPPredicate)predicate
+{
+ [textField setStringValue:[predicate predicateFormat]];

var desc = "";

Modified: branches/CPRuleEditor/CPRuleEditor.j
==============================================================================
--- branches/CPRuleEditor/CPRuleEditor.j (original)
+++ branches/CPRuleEditor/CPRuleEditor.j Sun Feb 1 02:56:18 2009
@@ -43,7 +43,7 @@
boundArrayContext = "bound_array";


-@implementation RuleEditor : CPView
+@implementation CPRuleEditor : CPView
{

var elideUpdating = 1;

Reply all
Reply to author
Forward
0 new messages