Skip to content

Instantly share code, notes, and snippets.

/*
* AppController.j
* toolbar
*
* Created by __Me__ on __Date__.
* Copyright 2008 __MyCompanyName__. All rights reserved.
*/
@import <Foundation/CPObject.j>
@import <AppKit/CPBezierPath.j>
<?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>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
#ifdef PREMIUM
<string>iReddit</string>
#else
.item {
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from(rgb(255, 255, 255)), to(rgb(201, 201, 201)));
padding: 1px 8px 1px 8px;
margin: 6px;
-webkit-border-radius: 8px;
}
Building target ÒThree20Ó of project ÒThree20Ó with configuration ÒDebugÓ Ñ (23 errors, 22 warnings)
cd /Users/boucher/Projects/iPhone/three20/src
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -x objective-c -arch i386 -fmessage-length=0 -pipe -std=c99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -DDEBUG -D__IPHONE_OS_VERSION_MIN_REQUIRED=30000 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.0.sdk -mmacosx-version-min=10.5 -gdwarf-2 -iquote /Users/boucher/Projects/iPhone/three20/src/build/Three20.build/Debug-iphonesimulator/Three20.build/Three20-generated-files.hmap -I/Users/boucher/Projects/iPhone/three20/src/build/Three20.build/Debug-iphonesimulator/Three20.build/Three20-own-target-headers.hmap -I/Users/boucher/Projects/iPhone/three20/src/build/Three20.build/Debug-iphon
@import <Foundation/CPObject.j>
// bad class name. need something better.
@implementation CPFunctionForwarder : CPObject
{
CPDictionary _implementations;
}
- (id)init
NSManagedObjectContext *context = [XAppDelegate managedObjectContext];
NSFetchRequest *fetchRequest = [[NSFetchRequest alloc] init];
NSEntityDescription *entity = [NSEntityDescription entityForName:@"Person" inManagedObjectContext:context];
NSArray *XIDsToSearchFor = [person.FriendsXIDs valueForKey:@"intValue"];
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"self IN %@", XIDsToSearchFor];
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"Rank" ascending:NO];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
diff --git a/Objective-J/preprocess.js b/Objective-J/preprocess.js
index ad96215..63c94af 100644
--- a/Objective-J/preprocess.js
+++ b/Objective-J/preprocess.js
@@ -169,6 +169,7 @@ objj_stringBuffer.prototype.isEmpty = function()
var objj_preprocessor = function(aString, aSourceFile, aBundle, flags)
{
+ this._currentSelector = "";
this._currentClass = "";
diff --git a/src/main/webapp/app/TwitView.j b/src/main/webapp/app/TwitView.j
index 40c2095..185177f 100644
--- a/src/main/webapp/app/TwitView.j
+++ b/src/main/webapp/app/TwitView.j
@@ -13,13 +13,14 @@
_label = [[CPTextField alloc] initWithFrame:CGRectMakeZero()];
[_label setFont:[CPFont systemFontOfSize:12]];
[_label setTextColor:[CPColor whiteColor]];
- [_label setAutoresizingMask:CPViewWidthSizable];
+ [_label setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
diff --git a/src/main/webapp/app/TwitView.j b/src/main/webapp/app/TwitView.j
index 40c2095..185177f 100644
--- a/src/main/webapp/app/TwitView.j
+++ b/src/main/webapp/app/TwitView.j
@@ -13,13 +13,14 @@
_label = [[CPTextField alloc] initWithFrame:CGRectMakeZero()];
[_label setFont:[CPFont systemFontOfSize:12]];
[_label setTextColor:[CPColor whiteColor]];
- [_label setAutoresizingMask:CPViewWidthSizable];
+ [_label setAutoresizingMask:CPViewWidthSizable|CPViewHeightSizable];
Assertion failed in testRelative from: "/foo/bar/baz" to: "/foo/bar/quux/baz" is: "quux/baz":
AssertionError:
Expected equal = "quux/baz"
Actual = "quux/"
Assertion failed in testRelative from: "/foo/bar/baz" to: "/foo/quux/baz" is: "../quux/baz":
AssertionError:
Expected equal = "../quux/baz"
Actual = "../quux/"
Assertion failed in testConsistencySha256:
AssertionError: