mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-08-31 07:53:35 +00:00
Added : -makeViewWithIdentifier:owner: -rowForView: columnForView: less performant tahn cocoa because we cycle through all visible rows. But these methods are generally used once when editing manually. Added identifier property to CPView. retro and forward (in IB) compatible with the existing API. You can use IB table view based without the new API. Existing table views / Nib won't break. CPTableView view based example. Featuring: IB made data views, different views in the same column, subviews binding in IB When the view is found automatically in the cib, instantiate with _delegate as the owner (cocoa behavior).
30 lines
417 B
Plaintext
30 lines
417 B
Plaintext
|
|
@import <AppKit/CPTableView.j>
|
|
|
|
@implementation CPTableCellView (NSCoding)
|
|
|
|
- (id)NS_initWithCoder:(CPCoder)aCoder
|
|
{
|
|
self = [super NS_initWithCoder:aCoder];
|
|
|
|
return self;
|
|
}
|
|
|
|
@end
|
|
|
|
@implementation NSTableCellView : CPTableCellView
|
|
{
|
|
}
|
|
|
|
- (id)initWithCoder:(CPCoder)aCoder
|
|
{
|
|
return [self NS_initWithCoder:aCoder];
|
|
}
|
|
|
|
- (Class)classForKeyedArchiver
|
|
{
|
|
return [CPTableCellView class];
|
|
}
|
|
|
|
@end
|