Skip to content
Snippets Groups Projects
Commit df51dbcf authored by C.W. Betts's avatar C.W. Betts
Browse files

Convert more interfaces to use properties.

Use DEPRECATED_ATTRIBUTE to mark functions deprecated in the comments.
parent 585dd7e0
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 21 deletions
Loading
Loading
@@ -24,7 +24,7 @@ static const NSInteger kRecycleDirectoryTag = 2;
IBOutlet NSTextField* _paneDirectory;
}
 
- (id)init {
- (instancetype)init {
return [super initWithWindowNibName:@"AdvancedWorkingDirectoryWindow"];
}
 
Loading
Loading
Loading
Loading
@@ -31,7 +31,7 @@
return instance;
}
 
- (id)init {
- (instancetype)init {
self = [super init];
if (self) {
_queue = dispatch_queue_create("AsyncHostLookupControllerQueue", NULL);
Loading
Loading
Loading
Loading
@@ -70,7 +70,7 @@ const int kMaxResultContextWords = 4;
return [iTermAdvancedSettingsModel autocompleteMaxOptions];
}
 
- (id)init
- (instancetype)init
{
const int kMaxOptions = [AutocompleteView maxOptions];
self = [super initWithWindowNibName:@"Autocomplete"
Loading
Loading
Loading
Loading
@@ -35,7 +35,7 @@ enum {
return YES;
}
 
- (int)indexOfTag:(int)theTag
- (NSInteger)indexOfTag:(NSInteger)theTag
{
int i = 0;
for (NSNumber *n in [self objectsSortedByValueInDict:[self menuItemsForPoupupButton]]) {
Loading
Loading
@@ -47,7 +47,7 @@ enum {
return -1;
}
 
- (int)tagAtIndex:(int)index
- (NSInteger)tagAtIndex:(NSInteger)index
{
int i = 0;
 
Loading
Loading
Loading
Loading
@@ -37,7 +37,7 @@ typedef enum {
IBOutlet NSButton *_copyButton;
}
 
- (id)init {
- (instancetype)init {
return [super initWithWindowNibName:@"BulkCopyProfilePreferences"];
}
 
Loading
Loading
Loading
Loading
@@ -15,7 +15,7 @@
return [[[CRunStorage alloc] initWithCapacity:capacity] autorelease];
}
 
- (id)initWithCapacity:(int)capacity {
- (instancetype)initWithCapacity:(int)capacity {
self = [super init];
if (self) {
capacity = MAX(capacity, 1);
Loading
Loading
Loading
Loading
@@ -40,7 +40,7 @@ static const int kMaxCommandsToSavePerHost = 200;
return instance;
}
 
- (id)init {
- (instancetype)init {
self = [super init];
if (self) {
_hosts = [[NSMutableDictionary alloc] init];
Loading
Loading
Loading
Loading
@@ -39,7 +39,7 @@ static NSString *const kCommandUses = @"use times"; // The name is a historical
return entry;
}
 
- (id)init {
- (instancetype)init {
self = [super init];
if (self) {
_commandUses = [[NSMutableArray alloc] init];
Loading
Loading
Loading
Loading
@@ -27,7 +27,7 @@
int _partialCommandLength;
}
 
- (id)init
- (instancetype)init
{
self = [super initWithWindowNibName:@"CommandHistoryPopup"
tablePtr:nil
Loading
Loading
Loading
Loading
@@ -20,7 +20,7 @@ static NSString* kParameterKey = @"parameter";
@synthesize delegate = delegate_;
@synthesize hasSelection = hasSelection_;
 
- (id)initWithWindow:(NSWindow *)window
- (instancetype)initWithWindow:(NSWindow *)window
{
self = [super initWithWindow:window];
if (self) {
Loading
Loading
Loading
Loading
@@ -121,7 +121,7 @@ static NSString *kCoprocessMruKey = @"Coprocess MRU";
return result;
}
 
- (id)init
- (instancetype)init
{
self = [super init];
if (self) {
Loading
Loading
Loading
Loading
@@ -33,7 +33,7 @@
 
@implementation DVR
 
- (id)initWithBufferCapacity:(int)bytes
- (instancetype)initWithBufferCapacity:(int)bytes
{
self = [super init];
if (self) {
Loading
Loading
Loading
Loading
@@ -31,7 +31,7 @@
 
@implementation DVRBuffer
 
- (id)initWithBufferCapacity:(long long)maxsize
- (instancetype)initWithBufferCapacity:(long long)maxsize
{
self = [super init];
if (self) {
Loading
Loading
Loading
Loading
@@ -44,7 +44,7 @@
 
@implementation DVRDecoder
 
- (id)initWithBuffer:(DVRBuffer*)buffer
- (instancetype)initWithBuffer:(DVRBuffer*)buffer
{
self = [super init];
if (self) {
Loading
Loading
Loading
Loading
@@ -63,7 +63,7 @@ static long long now()
 
@implementation DVREncoder
 
- (id)initWithBuffer:(DVRBuffer*)buffer
- (instancetype)initWithBuffer:(DVRBuffer*)buffer
{
self = [super init];
if (self) {
Loading
Loading
Loading
Loading
@@ -25,7 +25,7 @@
IBOutlet NSTableColumn *_mainColumn;
}
 
- (id)init {
- (instancetype)init {
self = [super initWithWindowNibName:@"DirectoriesPopup"
tablePtr:nil
model:[[[PopupModel alloc] init] autorelease]];
Loading
Loading
Loading
Loading
@@ -2,7 +2,7 @@
 
@implementation EquivalenceClassSet
 
- (id)init
- (instancetype)init
{
self = [super init];
if (self) {
Loading
Loading
Loading
Loading
@@ -32,7 +32,7 @@
 
@implementation FakeWindow
 
- (id)initFromRealWindow:(NSWindowController<iTermWindowController> *)aTerm
- (instancetype)initFromRealWindow:(NSWindowController<iTermWindowController> *)aTerm
session:(PTYSession*)aSession
{
self = [super init];
Loading
Loading
Loading
Loading
@@ -32,7 +32,7 @@ static const NSTimeInterval kMaximumTimeToKeepFinishedDownload = 24 * 60 * 60;
return instance;
}
 
- (id)init {
- (instancetype)init {
self = [super init];
if (self) {
_files = [[NSMutableArray alloc] init];
Loading
Loading
Loading
Loading
@@ -25,7 +25,7 @@ static const NSTimeInterval kDefaultMaxTime = 0.1;
@synthesize hasWrapped = hasWrapped_;
@synthesize maxTime = maxTime_;
 
- (id)init {
- (instancetype)init {
self = [super init];
if (self) {
maxTime_ = kDefaultMaxTime;
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment