This file contains 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/CPView.j> | |
@implementation OLResourceView : CPView | |
{ | |
} | |
- (id)initWithFrame:(CGRect)frame | |
{ | |
if(self = [super initWithFrame:frame]) | |
{ |
This file contains 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 CPArray (Find) | |
- (CPObject)findBy:(Function)isTheObject | |
{ | |
for(int i = 0; i < [self count]; i++) | |
{ | |
if(isTheObject([self objectAtIndex:i])) | |
{ | |
return [self objectAtIndex:i]; | |
} |
This file contains 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 OJUser : CPObject | |
... | |
- (void)initWithConnection:(OJConnection)connection | |
... | |
- (void)save | |
{ | |
[connection save:self]; | |
} |
This file contains 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 |
This file contains 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 |
This file contains 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 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 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 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 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 | |
{ |
OlderNewer