This file contains hidden or 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 subviews = _subviews; | |
| _subviews = []; | |
| [super encodeWithCoder:aCoder]; | |
| _subviews = subviews; | |
This file contains hidden or 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)drawInContext:(CGContext)aContext | |
| { | |
| [super drawInContext:aContext]; | |
| var bounds = [self bounds]; | |
| if (_fill && _geometry) | |
| { | |
| [_geometry setPathForContext:aContext bounds:bounds adjustments:_adjustmentValues]; | |
| [_fill fillPathInLayer:self inContext:aContext]; |
This file contains hidden or 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
| _styleControl = [[FormatSegmentedControl alloc] initWithFrame:CGRectMake(0.0, 0.0, 0.0, 18.0)]; | |
| [_styleControl setTrackingMode:CPSegmentSwitchTrackingSelectAny]; | |
| [_styleControl setSegmentCount:3]; | |
| [_styleControl setAction:@selector(changeTextStyle:)]; | |
| [_styleControl setWidth:22.0 forSegment:0]; | |
| [_styleControl setImage:FormattingBoldImage forSegment:0]; | |
| [_styleControl setTag:0 forSegment:0]; | |
This file contains hidden or 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 FormatColorWellBackgroundColor = nil, | |
| FormatColorWellHighlightedBackgroundColor = nil; | |
| var FormatColorWellMenu = nil; | |
| @implementation FormatColorWell : CPColorWell | |
| { | |
| BOOL _hasNilColor; | |
| BOOL _showsNilColor; | |
| } |
This file contains hidden or 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 SharedLoginController = nil; | |
| @implementation LoginController : CPObject | |
| { | |
| CPString _email; | |
| CPString _sessionID; | |
| int _userID; | |
| BOOL _finishedLoading; | |
This file contains hidden or 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
| // Add a text field to the cell | |
| cell = [tableView dequeueReusableCellWithIdentifier:@"usernameCell"]; | |
| if (!cell) | |
| { | |
| cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reuseIdentifier:@"usernameCell"] autorelease]; | |
| cell.selectionStyle = UITableViewCellSelectionStyleNone; | |
| cell.text = @"username"; | |
| cell.font = [UIFont boldSystemFontOfSize:16.0]; |
This file contains hidden or 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 "AppInspector.j" | |
| @implementation AppController : CPObject | |
| { | |
| CPImageView imageView; | |
| AppInspector inspector; | |
| } | |
| - (void)applicationDidFinishLaunching:(CPNotification)aNotification |
This file contains hidden or 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
| /* -*- coding: utf-8 -*- | |
| * | |
| * Starrater with a revised version from boucher from 280North | |
| */ | |
| @import <AppKit/CPControl.j> | |
| @import <AppKit/CPImage.j> | |
| var starEmpty = [[CPImage alloc] initWithContentsOfFile: "Resources/StarRater/empty.gif" size: CPSizeMake(25, 25)], | |
| starSet = [[CPImage alloc] initWithContentsOfFile: "Resources/StarRater/set.gif" size: CPSizeMake(25, 25)], |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'common' | |
| require 'rake' | |
| require 'rake/clean' | |
| subprojects = %w{Objective-J Foundation AppKit Tools} | |
| %w(build clean clobber).each do |task_name| |
This file contains hidden or 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 context = [[CPGraphicsContext currentContext] graphicsPort], | |
| bottomBorderColor = [CPColor colorWithWhite:0.0 alpha:0.6], | |
| topBorderColor = [CPColor colorWithWhite:1.0 alpha:0.6], | |
| tintColor = _tintColor || [self backgroundColor], | |
| bounds = [self bounds]; | |
| CGContextSetFillColor(context, tintColor); | |
| CGContextFillRect(context, bounds); | |
| CGContextBeginPath(context); |