This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @implementation TestClass : CPObject | |
| { | |
| CPNotificationCenter notification @accessors; | |
| } | |
| - (void)init | |
| { | |
| var test = function() { return "Bob"; }; | |
| return [super init]; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)assert:(id)target registered:(CPString)aNotification | |
| { | |
| var names = [[CPNotificationCenter defaultCenter]._namedRegistries keyEnumerator]; | |
| while (name = [names nextObject]) | |
| { | |
| if([name isEqualToString:aNotification]) | |
| { | |
| var registry = [[CPNotificationCenter defaultCenter]._namedRegistries objectForKey:name]; | |
| var objects = [registry._objectObservers keyEnumerator]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| An error occured while building: | |
| Syntax error in UITestScriptParser.j on preprocessed line number 15 | |
| for(var i = 0; i < objj_msgSend(data, "count"); i++) | |
| { | |
| if(objj_msgSend(data, "objectAtIndex:", i).match("^#") || objj_msgSend(data, "objectAtIndex:", i).match(/^\ | |
| || objj_msgSend(data, "objectAtIndex:", i).match(/^Comment/) || objj_msgSend(data, "objectAtIndex:", i).match(/^\s*$/)) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private int deleteInternal(Uri url, String userWhere, String[] whereArgs) { | |
| String tableToChange; | |
| // In some cases a given url requires that we delete rows from more than one | |
| // table. The motivating example is deleting messages from both the on disk | |
| // and in memory messages tables. | |
| String tableToChange2 = null; | |
| String idColumnName = null; | |
| String changedItemId = null; | |
| String provider = null; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... | |
| - (void)loadEverything | |
| { | |
| loginController = [[LoginWindowController alloc] init...]; | |
| [loginController setDelegate:self]; | |
| } | |
| - (void)someFunction | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import <AppKit/CPTableView.j> | |
| @implementation CPTableView (DoubleClick) | |
| - (void)mouseDown:(CPEvent)anEvent | |
| { | |
| if ([anEvent clickCount] == 2) | |
| { | |
| var index = [[self selectedRowIndexes] firstIndex]; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @import <AppKit/CPWindow.j> | |
| @import "../models/OLFeedback.j" | |
| @implementation OLFeedbackWindow : CPWindow | |
| { | |
| CPView _feedbackView; | |
| CPView _submittingFeedbackView; | |
| CPView _submittedFeedbackView; | |
| CPView _currentView; // Keeps track of the current content view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)didSubmitRegistration:(CPDictionary)registrationInfo | |
| { | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class OJMoq | |
| { | |
| OJMoqSelector Selector(SEL aSelector) | |
| { | |
| var theSelector = new OJMoqSelector(aSelector); | |
| selectors.Add(theSelector); | |
| return theSelector; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Autotest | |
| def make_test_cmd files_to_test | |
| return "objj RunTests.j" | |
| end | |
| end |