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 <AppKit/CPOutlineView.j> | |
@implementation SourceListController : CPObject | |
{ | |
CPOutlineView outlineView; | |
CPView owner; | |
CPDictionary items; | |
AOURLConnection dataConnection; |
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 <AppKit/CPOutlineView.j> | |
@implementation SourceListController : CPObject | |
{ | |
CPOutlineView outlineView; | |
CPView owner; | |
CPDictionary items; | |
AOURLConnection dataConnection; | |
id delegate; |
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
- (id)outlineView:(CPOutlineView)outlineView objectValueForTableColumn:(CPTableColumn)tableColumn byItem:(id)item | |
{ | |
CPLog("outlineView:%@ objectValueForTableColumn:%@ byItem:%@", outlineView, tableColumn, item); | |
var values = [items objectForKey:item]; | |
var label = [values objectForKey:@"name"]; | |
var fileName = [[CPString alloc] initWithFormat:@"%@_%@.png", [values objectForKey:@"basic_type"], [values objectForKey:@"extra_type"]]; | |
return [[AOOutlineViewObjectData alloc] initWithLabel:label iconName:fileName]; | |
} |
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
- (id)outlineView:(CPOutlineView)outlineView objectValueForTableColumn:(CPTableColumn)tableColumn byItem:(id)item | |
{ | |
CPLog("outlineView:%@ objectValueForTableColumn:%@ byItem:%@", outlineView, tableColumn, item); | |
var values = [items objectForKey:item]; | |
var label = [values objectForKey:@"name"]; | |
var fileName = [[CPString alloc] initWithFormat:@"%@_%@.png", [values objectForKey:@"basic_type"], [values objectForKey:@"extra_type"]]; | |
return [[AOOutlineViewObjectData alloc] initWithLabel:label iconName:fileName]; | |
} | |
@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
@import <Foundation/CPObject.j> | |
@import <AppKit/CPOutlineView.j> | |
@implementation SourceListController : CPObject | |
{ | |
CPOutlineView outlineView; | |
CPView owner; | |
CPDictionary items; | |
AOURLConnection dataConnection; |
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 AOUserPullDownButton : CPPopUpButton | |
{ | |
CPMenuItem nameItem; | |
CPMenuItem loginItem; | |
CPMenuItem logoutItem; | |
CPMenuItem preferencesItem; | |
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 LoginWindowController : CPObject | |
{ | |
@outlet CPTextField username; | |
@outlet CPTextField password; | |
@outlet CPWindow loginWindow; | |
CPCib loginWindowCib; | |
id delegate @accessors; |