Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (32 sloc) 1.007 kb
// ProfileTablekRow.h
// iTerm
// Created by George Nachman on 1/9/12.
#import <Foundation/Foundation.h>
#import "ProfileModel.h"
// This wraps a single bookmark and adds a KeyValueCoding. To keep things simple
// it will hold only the bookmark's GUID, since bookmark dictionaries themselves
// are evanescent.
// It implements a KeyValueCoding so that sort descriptors will work.
@interface ProfileTableRow : NSObject
NSString* guid;
ProfileModel* underlyingModel;
- (id)initWithBookmark:(Profile*)bookmark underlyingModel:(ProfileModel*)underlyingModel;
- (void)dealloc;
- (Profile*)bookmark;
@interface ProfileTableRow (KeyValueCoding)
// We need ascending order to sort default before not-default so we can't use
// anything senible like BOOL or "Yes"/"No" because they'd sort wrong.
typedef enum { IsDefault = 1, IsNotDefault = 2 } BookmarkRowIsDefault;
- (NSNumber*)default;
- (NSString*)name;
- (NSString*)shortcut;
- (NSString*)command;
- (NSString*)guid;
Jump to Line
Something went wrong with that request. Please try again.