Skip to content

Instantly share code, notes, and snippets.

View karlforshaw's full-sized avatar

Karl Forshaw karlforshaw

  • Sheffield, United Kingdom
View GitHub Profile
<phpunit bootstrap="./application/bootstrap.php">
<testsuite name="default">
<directory suffix=".php">./</directory>
</testsuite>
<filter>
<whitelist>
<directory suffix=".php">../application/</directory>
<exclude>
@implementation DataDelegate : CPObject
- (void)connection:(CPURLConnection)aConnection didReceiveData:(CPString)data
{
// Process the data and test it's integrity
CPLog.info('Recieved Data');
var unarchiver = [[CPKeyedUnarchiver alloc] initForReadingWithData:[CPData dataWithString:data]];
var presentation = [unarchiver decodeObjectForKey:"DocumentPresentationKey"];
var buttonBar = [self blankButtonBar]; //[buttonBar setBackgroundColor:[CPColor redColor]];
var bounds = [_pageViewInner bounds];
var answers = [aQuestion answers];
// Add the buttons (answers)
var padding = 10;
var nextXPos = 0;
for (var i=0; i<answers.length; i++) {
@implementation WizardController : CPWindowController
{
}
/*
* Instance Init Method
*/
- (WizardController)init
var sharedWizardController = nil;
@implementation WizardController : CPWindowController
{
int _currentPage = 0;
}
- (WizardController)init
{
-(void)emptySlideNavigator
{
console.log('starting: ' + [[_slideNavigatorView subviews] count]);
// Remove all the previous buttons
if([[_slideNavigatorView subviews] count] > 0) {
for (var i=0; i<[[_slideNavigatorView subviews] count]; i++) {
console.log('removing:' + [_slideNavigatorView subviews][i] + 'at index:' + i );
@implementation SlideLibraryThumbnailProtoype : CPView
{
SlideLibraryTabThumbnail _object;
}
- (void)setRepresentedObject:(id)theData
{
if(! _object) {