diff options
author | rowanbeentje <rowan@beent.je> | 2012-12-21 01:12:58 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2012-12-21 01:12:58 +0000 |
commit | f902d968af40f930d9d1350ca15909a274aafc3d (patch) | |
tree | 9b1f467f52d5d945a13eba2524918873b247d9d1 /Source/SPNavigatorController.m | |
parent | ca5787cbe6d031b9d14639b54ada26cb12964c17 (diff) | |
download | sequelpro-f902d968af40f930d9d1350ca15909a274aafc3d.tar.gz sequelpro-f902d968af40f930d9d1350ca15909a274aafc3d.tar.bz2 sequelpro-f902d968af40f930d9d1350ca15909a274aafc3d.zip |
- Convert all old .tiff resource images to .png format
- Recompress all pngs losslessly to reduce disk use slightly
- Remove old unused images
- Switch some code over to imageNamed: to allow easier Retina additions in future
Diffstat (limited to 'Source/SPNavigatorController.m')
-rw-r--r-- | Source/SPNavigatorController.m | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/SPNavigatorController.m b/Source/SPNavigatorController.m index 7cceefd2..9977773c 100644 --- a/Source/SPNavigatorController.m +++ b/Source/SPNavigatorController.m @@ -161,13 +161,13 @@ static NSComparisonResult compareStrings(NSString *s1, NSString *s2, void* conte [outlineSchema2 setDraggingSourceOperationMask:NSDragOperationEvery forLocal:YES]; [outlineSchema2 setDraggingSourceOperationMask:NSDragOperationEvery forLocal:NO]; - connectionIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"network-small" ofType:@"tif"]]; - databaseIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"database-small" ofType:@"png"]]; - tableIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"table-small-square" ofType:@"png"]]; - viewIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"table-view-small-square" ofType:@"tiff"]]; - procedureIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"proc-small" ofType:@"png"]]; - functionIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"func-small" ofType:@"png"]]; - fieldIcon = [[NSImage alloc] initWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"field-small-square" ofType:@"tiff"]]; + connectionIcon = [[NSImage imageNamed:@"network-small"] retain]; + databaseIcon = [[NSImage imageNamed:@"database-small"] retain]; + tableIcon = [[NSImage imageNamed:@"table-small-square"] retain]; + viewIcon = [[NSImage imageNamed:@"table-view-small-square"] retain]; + procedureIcon = [[NSImage imageNamed:@"proc-small"] retain]; + functionIcon = [[NSImage imageNamed:@"func-small"] retain]; + fieldIcon = [[NSImage imageNamed:@"field-small-square"] retain]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateNavigator:) name:@"SPDBStructureWasUpdated" object:nil]; |