aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowManagement.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2014-12-13 03:01:19 +0100
committerMax <post@wickenrode.com>2014-12-13 03:04:09 +0100
commit4ad26db45b46d8267fcb5203571b81bc8949b853 (patch)
tree76c191186f4ce342964bf3c4bbf23d0fce05e063 /Source/SPWindowManagement.m
parent33fd38501be11213968536a0c540cee7061e42a9 (diff)
downloadsequelpro-4ad26db45b46d8267fcb5203571b81bc8949b853.tar.gz
sequelpro-4ad26db45b46d8267fcb5203571b81bc8949b853.tar.bz2
sequelpro-4ad26db45b46d8267fcb5203571b81bc8949b853.zip
Reformatting code for modern ObjC
Replaced all [NSNumber numberWithBool:YES/NO] with the @YES/@NO literals. Also replaced some TRUE/FALSE with their YES/NO counterparts.
Diffstat (limited to 'Source/SPWindowManagement.m')
-rw-r--r--Source/SPWindowManagement.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/SPWindowManagement.m b/Source/SPWindowManagement.m
index 000bbe3f..022ad7fa 100644
--- a/Source/SPWindowManagement.m
+++ b/Source/SPWindowManagement.m
@@ -117,17 +117,17 @@
// Get the state of the previously-frontmost document
NSDictionary *allStateDetails = [NSDictionary dictionaryWithObjectsAndKeys:
- [NSNumber numberWithBool:YES], @"connection",
- [NSNumber numberWithBool:YES], @"history",
- [NSNumber numberWithBool:YES], @"session",
- [NSNumber numberWithBool:YES], @"query",
- [NSNumber numberWithBool:YES], @"password",
+ @YES, @"connection",
+ @YES, @"history",
+ @YES, @"session",
+ @YES, @"query",
+ @YES, @"password",
nil];
NSMutableDictionary *frontState = [NSMutableDictionary dictionaryWithDictionary:[theFrontDocument stateIncludingDetails:allStateDetails]];
// Ensure it's set to autoconnect
- [frontState setObject:[NSNumber numberWithBool:YES] forKey:@"auto_connect"];
+ [frontState setObject:@YES forKey:@"auto_connect"];
// Set the connection on the new tab
[[self frontDocument] setState:frontState];