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
+ (CPPopUpButton)themedSegmentedControl | |
{ | |
var segmentedControl = [[CPSegmentedControl alloc] initWithFrame:CGRectMake(0.0, 0.0, 0.0, 25.0)]; | |
[segmentedControl setTrackingMode:CPSegmentSwitchTrackingSelectAny]; | |
[segmentedControl setSegmentCount:3]; | |
[segmentedControl setWidth:40.0 forSegment:0]; | |
[segmentedControl setLabel:@"foo" forSegment:0]; | |
[segmentedControl setTag:1 forSegment:0]; |
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
+ (CPPopUpButton)themedSegmentedControl | |
{ | |
var segmentedControl = [[CPSegmentedControl alloc] initWithFrame:CGRectMake(0.0, 0.0, 0.0, 24.0)]; | |
[segmentedControl setTrackingMode:CPSegmentSwitchTrackingSelectAny]; | |
[segmentedControl setSegmentCount:3]; | |
[segmentedControl setWidth:40.0 forSegment:0]; | |
[segmentedControl setLabel:@"foo" forSegment:0]; | |
[segmentedControl setTag:1 forSegment:0]; |
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
2010-04-09 22:04:26.996 Cappuccino: Exception CPInvalidArgumentException: - [CPString _attributeWithName:forClass:] unrecognized selector sent to instance 0x0038bd in [<CPException 0x000nan> raise] | |
2010-04-09 22:04:26.998 Cappuccino: [<CPApplication 0x000a35> sendEvent:] | |
2010-04-09 22:04:26.999 Cappuccino: [<CPWindow 0x0025f6> sendEvent:] | |
2010-04-09 22:04:27.001 Cappuccino: [<CPTextField 0x002a95> performSelector:withObject:] | |
2010-04-09 22:04:27.002 Cappuccino: [<CPTextField 0x002a95> mouseUp:] | |
2010-04-09 22:04:27.004 Cappuccino: [<HPCollectionViewItem 0x002a6e> mouseUp:] | |
2010-04-09 22:04:27.005 Cappuccino: [<CPCollectionView 0x002963> performSelector:withObject:] | |
2010-04-09 22:04:27.006 Cappuccino: [<CPCollectionView 0x002963> mouseUp:] | |
2010-04-09 22:04:27.008 Cappuccino: [<HPIndexView 0x002807> collectionView:didDoubleClickOnItemAtIndex:] | |
2010-04-09 22:04:27.009 Cappuccino: [<CPNotificationCenter 0x0025b4> postNotification:] |
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
@implementation TableDateView : CPView | |
{ | |
CPTextField labelView; | |
CPDate myDate; | |
} | |
- (void)setObjectValue:(id)value { | |
if( value && | |
!myDate ){ | |
myDate = [[CPDate alloc] initWithString:[CPString stringWithFormat:@"%@ -0400",value]]; |
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
- (CPToolbarItem)toolbar:(CPToolbar)toolbar itemForItemIdentifier:(CPString)itemIdentifier willBeInsertedIntoToolbar:(BOOL)flag{ | |
if( [itemIdentifier isEqualToString:@"search"] ){ | |
var searchItem = [[CPToolbarItem alloc] initWithItemIdentifier:itemIdentifier]; | |
var searchField = [[CPSearchField alloc] initWithFrame:CGRectMake(0,0,180.0,22.0)]; | |
[searchItem setView:searchField]; | |
[searchItem setLabel:@"Search"]; | |
return searchItem; | |
} | |
var tbItem = [[CPToolbarItem alloc] init]; |
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 <Foundation/CPObject.j> | |
@implementation ActionTableDataView : CPView | |
{ | |
} | |
- (void)setObjectValue:(id)value { | |
CPLog(value); | |
if( [value containsKey:@"image"] ){ |
NewerOlder