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
{ | |
"sources" : [ | |
{ | |
"type" : "git", | |
"path" : "git://github.com/280north/cappuccino.git", | |
"parts" : [ | |
{ | |
"src" : "Objective-J", | |
"dst" : "Frameworks/Objective-J", | |
"copyFrom" : "Release/Objective-J" |
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
/* | |
* AppController.j | |
* | |
* Created by __Me__ on __Date__. | |
* Copyright 2008 __MyCompanyName__. All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import <AppKit/CPView.j> |
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
/* | |
* AppController.j | |
* | |
* Created by __Me__ on __Date__. | |
* Copyright 2008 __MyCompanyName__. All rights reserved. | |
*/ | |
@import <Foundation/CPObject.j> | |
@import <AppKit/CPView.j> |
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
// Attempt at a themeable CPTextView | |
@import <AppKit/CPView.j> | |
@import <AppKit/CPTextField.j> | |
// Code extended from code at http://gist.github.com/9848 | |
@implementation CPTextView : CPControl | |
{ | |
DOMElement FIXME_textArea; |
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> | |
// Code extended from code at http://gist.github.com/9848 | |
@implementation CPTextView : CPView | |
{ | |
DOMElement FIXME_textArea; | |
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
- (EditableUIView)parentEditableUIView | |
{ | |
var parentView = [self superview]; | |
while ([parentView class] != [EditableUIView class]) | |
superview = [parentView superview]; | |
return superview; | |
} |
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
// | |
// FileUpload.j | |
// Editor | |
// | |
// Created by Francisco Tolmasky on 03/04/08. | |
// Copyright 2005 - 2008, 280 North, Inc. All rights reserved. | |
// | |
import <Foundation/CPObject.j> | |
import <Foundation/CPValue.j> |
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 = [CPURLRequest requestWithURL:serverRoot + "/login/"], | |
JSONString = '{"email" : "something"}'; | |
[request setHTTPMethod: "POST"]; | |
[request setHTTPBody: JSONString]; | |
[request setValue:"application/json" forHTTPHeaderField:"Accept"] ; | |
[request setValue:"application/json" forHTTPHeaderField:"Content-Type"] ; | |
return [CPURLConnection connectionWithRequest:request delegate: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
- (void)setCurrentScreen:(Screen)aScreen | |
{ | |
if (aScreen == currentScreen) | |
return; | |
[currentScreen removeFromSuperview]; | |
currentScreen = aScreen; | |
if (currentScreen) { | |
[screenBorder addSubview:currentScreen]; | |
} |
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
[[[CPApplication sharedApplication] mainWindow] close]; | |
var documentController = [CPDocumentController sharedDocumentController], | |
documents = [documentController documents], | |
count = [documents count]; | |
for (var i = 0; i < count; ++i) | |
[documentController removeDocument:documents[i]]; |