Skip to content

Instantly share code, notes, and snippets.

@implementation TNConnectionWindow: CPWindow {
@outlet CPTextField jid;
@outlet CPTextField password;
@outlet CPImageView spinning;
@outlet CPTextField message;
CPCookie cookieLogin @accessors;
CPCookie cookiePassword @accessors;
TNStropheConnection strophe @accessors;
// first column
@implementation TNOutlineTableColumnLabel : CPTableColumn
{
CPOutlineView _outlineView;
CPView _dataViewForOther;
CPView _dataViewForRoot;
}
- (id)initWithIdentifier:(CPString)anIdentifier outlineView:(CPOutlineView)anOutlineView
{
Compiling [ObjJ] CPDictionary.j.........
Compiling [ObjJ] CPEnumerator.j..
Compiling [ObjJ] CPIndexSet.j.............
Compiling [ObjJ] CPKeyedArchiver.j............
Compiling [ObjJ] CPKeyedUnarchiver.j...........
Compiling [ObjJ] CPNull.j..
Compiling [ObjJ] CPSet.j..........
Compiling [ObjJ] CPURLConnection.j.......
Compiling [ObjJ] CPWebDAVManager.j......
Creating static file... /Users/Tonio/Library/Cappuccino/Release/Foundation/ObjJ.environment/Foundation.sj
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Main cib file base name</key>
<string>MainView.cib</string>
<key>CPBundleName</key>
<string>MainView</string>
<key>CPPrincipalClass</key>
<string>TNMainViewController</string>
- (void)populateTabsFromPlist
{
@each(var module in [_plistObject objectForKey:@"Modules"])
{
var currentModuleType = [module objectForKey:@"type"];
if ([self moduleType] == currentModuleType)
{
var folder = [module objectForKey:@"folder"];
var path = [self modulesPath] + folder + "/";
@implementation TNMainViewController : TNModule
{
@outlet CPTextField jid @accessors;
@outlet CPTextField mainTitle @accessors;
@outlet CPButton buttonCreateVM @accessors;
@outlet CPPopUpButton popupDeleteMachine @accessors;
@outlet CPButton buttonDeleteVM @accessors;
@outlet CPTextField healthCPUUsage @accessors;
@outlet CPTextField healthDiskUsage @accessors;
@outlet CPTextField healthMemUsage @accessors;
/*
* TNUserPreferences
*
* Copyright (C) 2010 Antoine Mercadal <antoine.mercadal@inframonde.eu>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
/*
* TNUserPreferences
*
* Copyright (C) 2010 Antoine Mercadal <antoine.mercadal@inframonde.eu>
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@implementation TNBase64Image : CPImage
{
CPString baseEncoded64Data @accessors;
}
+ (TNBase64Image)base64ImageWithData:(CPString)someBase64Data
{
var img = [[TNBase64Image alloc] init];
[img setBaseEncoded64Data:someBase64Data];
@implementation TNBase64Image : CPImage
{
CPString _baseEncoded64Data @accessors(setter=setBaseEncoded64Data:);
CPString _contentType @accessors(setter=setContentType:);
}
+ (TNBase64Image)base64ImageWithContentType:(CPString)aContentType andData:(CPString)someBase64Data
{
var img = [[TNBase64Image alloc] init];