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 AppController : CPObject | |
{ | |
CPSplitView verticalSplitter; | |
CPSplitView horizontalSplitter; | |
CPArray projects; | |
ProjectsController projectsController; | |
ProjectsView projectsView; | |
} |
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 <Foundation/CPObject.j> | |
@implementation ProjectsView : CPView | |
{ | |
CPTableView projectsTable; | |
CPArray projects; | |
} | |
- (id)initWithFrame:(CPRect)frame | |
{ | |
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
- (void)connection:(CPURLConnection) connection didReceiveData:(CPString)data | |
{ | |
//This method is called when a connection receives a response. in a | |
//multi-part request, this method will (eventually) be called multiple times, | |
//once for each part in the response. | |
projects = JSON.parse(data); | |
[projectsTable reloadData]; | |
} |
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 <Foundation/CPObject.j> | |
@implementation ProjectsView : CPView | |
{ | |
CPTableView projectsTable; | |
CPArray projects; | |
} | |
- (id)initWithFrame:(CPRect)frame | |
{ | |
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
@import <Foundation/CPObject.j> | |
@implementation ProjectsView : CPView | |
{ | |
CPTableView projectsTable; | |
CPArray projects; | |
} | |
- (id)initWithFrame:(CPRect)frame | |
{ | |
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
var request = new CFHTTPRequest(); | |
var searchURL; | |
switch (searchType) | |
{ | |
case JTSearchTypeFulltext: searchURL = fulltextSearchURL; | |
break; | |
case JTSearchTypeFragment: searchURL = fragmentSearchURL; |
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 <Foundation/CPObject.j> | |
@implementation ProjectsView : CPView | |
{ | |
id _delegate; | |
CPScrollView scrollView; | |
CPTableView projectsTable; | |
CPArray projects; | |
} |
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
var projectsTab = [[CPTabViewItem alloc] initWithIdentifier:@"projects"]; | |
[projectsTab setLabel:@"Projects"]; | |
[projectsTab setView:projectsView]; | |
[tabsView addTabViewItem:projectsTab]; |
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 <Foundation/CPObject.j> | |
@import "ProjectsView.j" | |
@import "TasksView.j" | |
@implementation AppController : CPObject | |
{ | |
ProjectsView projectsView; | |
TasksView tasksView; | |
CPTabView tabsView; |
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 <Foundation/CPObject.j> | |
@import "ProjectsView.j" | |
@import "TasksView.j" | |
@implementation AppController : CPObject | |
{ | |
ProjectsView projectsView; | |
TasksView tasksView; | |
CPTabView tabsView; |