Skip to content

Commit

Permalink
0.1.6
Browse files Browse the repository at this point in the history
- UI adjustments
- Changed fonts
- Almost all preferences working
- Updated about page
  • Loading branch information
w0lfschild committed Mar 9, 2016
1 parent 221b3eb commit 1782d53
Show file tree
Hide file tree
Showing 13 changed files with 433 additions and 229 deletions.
4 changes: 1 addition & 3 deletions SIMBLHelper/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,11 @@ - (void)checkForUpdates {
{
[myUpdater setAutomaticallyChecksForUpdates:true];
[myUpdater setAutomaticallyDownloadsUpdates:true];
[myUpdater setUpdateCheckInterval:86400];
}

if ([[GUIDefaults objectForKey:@"SUEnableAutomaticChecks"] boolValue])
{
[myUpdater checkForUpdatesInBackground];
// [myUpdater setUpdateCheckInterval:86400];
}
}

- (void)checkSIMBL {
Expand Down
30 changes: 11 additions & 19 deletions mySIMBL.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
FB09A4C81C4B26AD0072C553 /* WAYWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = FB09A4C41C4B26AD0072C553 /* WAYWindow.m */; };
FB09A4F51C4B5FEF0072C553 /* Changelog.rtf in Resources */ = {isa = PBXBuildFile; fileRef = FB09A4F41C4B5FEF0072C553 /* Changelog.rtf */; };
FB09A4F71C4B64F80072C553 /* webicon.png in Resources */ = {isa = PBXBuildFile; fileRef = FB09A4F61C4B64F80072C553 /* webicon.png */; };
FB09A4FB1C4B85250072C553 /* icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = FB09A4FA1C4B85250072C553 /* icon.icns */; };
FB09A4FB1C4B85250072C553 /* brick.png in Resources */ = {isa = PBXBuildFile; fileRef = FB09A4FA1C4B85250072C553 /* brick.png */; };
FB0CF6941C61D133002CF3DE /* SIMBL_Install.sh in Resources */ = {isa = PBXBuildFile; fileRef = FB0CF6931C61D133002CF3DE /* SIMBL_Install.sh */; };
FB0CF6961C61D13F002CF3DE /* SIMBL.osax in Resources */ = {isa = PBXBuildFile; fileRef = FB0CF6951C61D13F002CF3DE /* SIMBL.osax */; };
FB0CF69F1C61D1E9002CF3DE /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FB0CF69E1C61D1E9002CF3DE /* AppDelegate.m */; };
Expand All @@ -24,6 +24,7 @@
FB0CF6B01C61D617002CF3DE /* SIMBL.osax in Resources */ = {isa = PBXBuildFile; fileRef = FB0CF6951C61D13F002CF3DE /* SIMBL.osax */; };
FB0CF6B11C61D625002CF3DE /* SIMBL_Install.sh in Resources */ = {isa = PBXBuildFile; fileRef = FB0CF6931C61D133002CF3DE /* SIMBL_Install.sh */; };
FB3E55971C82EE4C006B4A54 /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB5F44DE1C43A5AF00DE80B4 /* Sparkle.framework */; };
FB4F45701C8FD4C3004AAE68 /* icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = FB4F456F1C8FD4C3004AAE68 /* icon.icns */; };
FB57D2F31C4BAFB20077F91C /* Sparkle.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = FB5F44DE1C43A5AF00DE80B4 /* Sparkle.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
FB57D2F51C4BB0C00077F91C /* Sparkle.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = FB5F44DE1C43A5AF00DE80B4 /* Sparkle.framework */; };
FB5F44B81C41EA4000DE80B4 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = FB5F44B71C41EA4000DE80B4 /* AppDelegate.m */; };
Expand All @@ -41,7 +42,6 @@
FBC54D701C4C33030021517C /* EULA.rtf in Resources */ = {isa = PBXBuildFile; fileRef = FBC54D6E1C4C33030021517C /* EULA.rtf */; };
FBC54D8B1C4C454E0021517C /* PFMoveApplication.m in Sources */ = {isa = PBXBuildFile; fileRef = FBC54D8A1C4C454E0021517C /* PFMoveApplication.m */; settings = {COMPILER_FLAGS = "-fno-objc-arc"; }; };
FBEC2F311C4C7164008237A6 /* github.png in Resources */ = {isa = PBXBuildFile; fileRef = FBEC2F2F1C4C7164008237A6 /* github.png */; };
FBEC2F321C4C7164008237A6 /* translate.png in Resources */ = {isa = PBXBuildFile; fileRef = FBEC2F301C4C7164008237A6 /* translate.png */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -69,7 +69,7 @@
FB09A4C41C4B26AD0072C553 /* WAYWindow.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WAYWindow.m; sourceTree = "<group>"; };
FB09A4F41C4B5FEF0072C553 /* Changelog.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Changelog.rtf; sourceTree = "<group>"; };
FB09A4F61C4B64F80072C553 /* webicon.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = webicon.png; sourceTree = "<group>"; };
FB09A4FA1C4B85250072C553 /* icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = icon.icns; sourceTree = "<group>"; };
FB09A4FA1C4B85250072C553 /* brick.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = brick.png; sourceTree = "<group>"; };
FB0CF6931C61D133002CF3DE /* SIMBL_Install.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = SIMBL_Install.sh; sourceTree = "<group>"; };
FB0CF6951C61D13F002CF3DE /* SIMBL.osax */ = {isa = PBXFileReference; lastKnownFileType = folder; name = SIMBL.osax; path = ../mySIMBL/SIMBL.osax; sourceTree = "<group>"; };
FB0CF69B1C61D1E8002CF3DE /* SIMBLHelper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SIMBLHelper.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -80,6 +80,7 @@
FB0CF6A61C61D1E9002CF3DE /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = Base; path = Base.lproj/MainMenu.xib; sourceTree = "<group>"; };
FB0CF6A81C61D1E9002CF3DE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
FB0CF6AD1C61D314002CF3DE /* injectPROC.sh */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.script.sh; path = injectPROC.sh; sourceTree = "<group>"; };
FB4F456F1C8FD4C3004AAE68 /* icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = icon.icns; sourceTree = "<group>"; };
FB5F44B31C41EA4000DE80B4 /* mySIMBL.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = mySIMBL.app; sourceTree = BUILT_PRODUCTS_DIR; };
FB5F44B61C41EA4000DE80B4 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
FB5F44B71C41EA4000DE80B4 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
Expand All @@ -104,7 +105,6 @@
FBC54D891C4C454E0021517C /* PFMoveApplication.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PFMoveApplication.h; sourceTree = "<group>"; };
FBC54D8A1C4C454E0021517C /* PFMoveApplication.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = PFMoveApplication.m; sourceTree = "<group>"; };
FBEC2F2F1C4C7164008237A6 /* github.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = github.png; sourceTree = "<group>"; };
FBEC2F301C4C7164008237A6 /* translate.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = translate.png; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -191,23 +191,13 @@
name = "Supporting Files";
sourceTree = "<group>";
};
FB0CF6AC1C61D222002CF3DE /* Methods */ = {
isa = PBXGroup;
children = (
FB5F44BA1C41EA4000DE80B4 /* main.m */,
FB5F44B61C41EA4000DE80B4 /* AppDelegate.h */,
FB5F44B71C41EA4000DE80B4 /* AppDelegate.m */,
);
name = Methods;
sourceTree = "<group>";
};
FB57959C1C4DCFA2001A76AC /* Icons */ = {
isa = PBXGroup;
children = (
FB09A4FA1C4B85250072C553 /* icon.icns */,
FB4F456F1C8FD4C3004AAE68 /* icon.icns */,
FB09A4FA1C4B85250072C553 /* brick.png */,
FB09A4F61C4B64F80072C553 /* webicon.png */,
FBEC2F2F1C4C7164008237A6 /* github.png */,
FBEC2F301C4C7164008237A6 /* translate.png */,
FBC54D6B1C4C31D70021517C /* heart2.png */,
);
name = Icons;
Expand Down Expand Up @@ -249,8 +239,9 @@
FB57959C1C4DCFA2001A76AC /* Icons */,
FB5F44D41C4380BB00DE80B4 /* Resource */,
FBB7934C1C7A9748006BF301 /* Scripts */,
FB0CF6AC1C61D222002CF3DE /* Methods */,
FB5F44BE1C41EA4000DE80B4 /* Appliaction.xib */,
FB5F44B61C41EA4000DE80B4 /* AppDelegate.h */,
FB5F44B71C41EA4000DE80B4 /* AppDelegate.m */,
FB09A4F41C4B5FEF0072C553 /* Changelog.rtf */,
FB5F44C11C41EA4000DE80B4 /* Info.plist */,
);
Expand All @@ -260,6 +251,7 @@
FB5F44D41C4380BB00DE80B4 /* Resource */ = {
isa = PBXGroup;
children = (
FB5F44BA1C41EA4000DE80B4 /* main.m */,
FBB793511C7AB7BC006BF301 /* dsa_pub.pem */,
FB5F44BC1C41EA4000DE80B4 /* Assets.xcassets */,
FBC54D6D1C4C33030021517C /* Credits.rtf */,
Expand Down Expand Up @@ -406,12 +398,12 @@
buildActionMask = 2147483647;
files = (
FB09A4F71C4B64F80072C553 /* webicon.png in Resources */,
FB09A4FB1C4B85250072C553 /* icon.icns in Resources */,
FBEC2F321C4C7164008237A6 /* translate.png in Resources */,
FB09A4FB1C4B85250072C553 /* brick.png in Resources */,
FB5F44BD1C41EA4000DE80B4 /* Assets.xcassets in Resources */,
FBB793501C7AB6C3006BF301 /* SIMBL_Install.sh in Resources */,
FBB7934F1C7AB6C3006BF301 /* injectPROC.sh in Resources */,
FBC54D6F1C4C33030021517C /* Credits.rtf in Resources */,
FB4F45701C8FD4C3004AAE68 /* icon.icns in Resources */,
FB0CF6941C61D133002CF3DE /* SIMBL_Install.sh in Resources */,
FB0CF6961C61D13F002CF3DE /* SIMBL.osax in Resources */,
FB09A4F51C4B5FEF0072C553 /* Changelog.rtf in Resources */,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "mySIMBL/AppDelegate.m"
timestampString = "478335889.189015"
timestampString = "479191766.673981"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "478"
endingLineNumber = "478"
startingLineNumber = "514"
endingLineNumber = "514"
landmarkName = "-readFolder::"
landmarkType = "5">
</BreakpointContent>
Expand Down Expand Up @@ -42,11 +42,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "mySIMBL/AppDelegate.m"
timestampString = "478335889.189015"
timestampString = "479191766.673981"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "463"
endingLineNumber = "463"
startingLineNumber = "499"
endingLineNumber = "499"
landmarkName = "-readFolder::"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -58,11 +58,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "mySIMBL/AppDelegate.m"
timestampString = "478335889.189015"
timestampString = "479191766.673981"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "572"
endingLineNumber = "572"
startingLineNumber = "608"
endingLineNumber = "608"
landmarkName = "-replaceFile::"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -74,11 +74,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "mySIMBL/AppDelegate.m"
timestampString = "478335889.189015"
timestampString = "479191766.673981"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "256"
endingLineNumber = "256"
startingLineNumber = "289"
endingLineNumber = "289"
landmarkName = "-setupWindow"
landmarkType = "5">
</BreakpointContent>
Expand Down Expand Up @@ -122,11 +122,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "mySIMBL/AppDelegate.m"
timestampString = "478335889.189015"
timestampString = "479191766.673981"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "319"
endingLineNumber = "319"
startingLineNumber = "354"
endingLineNumber = "354"
landmarkName = "-toggleDonateButton:"
landmarkType = "5">
</BreakpointContent>
Expand Down
63 changes: 52 additions & 11 deletions mySIMBL/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,23 @@ @interface AppDelegate ()
@property (nonatomic, strong) IBOutlet NSTableView *tblView;
@property (nonatomic, strong) IBOutlet NSTabView *tabView;

@property (nonatomic, strong) IBOutlet NSTextField *appName;
@property (nonatomic, strong) IBOutlet NSTextField *appVersion;
@property (nonatomic, strong) IBOutlet NSTextField *appCopyright;

@property (nonatomic, strong) IBOutlet NSView *tabAbout;
@property (nonatomic, strong) IBOutlet NSView *tabPlugins;
@property (nonatomic, strong) IBOutlet NSView *tabSIMBL;
@property (nonatomic, strong) IBOutlet NSView *tabSIMBLInstalled;
@property (nonatomic, strong) IBOutlet NSView *tabPreferences;
@property (nonatomic, strong) IBOutlet NSView *tabSIP;
@property (nonatomic, strong) IBOutlet NSView *tabSources;
@property (nonatomic, strong) IBOutlet NSView *tabDiscover;

@property (nonatomic, strong) IBOutlet NSButton *viewPlugins;
@property (nonatomic, strong) IBOutlet NSButton *viewPreferences;
@property (nonatomic, strong) IBOutlet NSButton *viewSources;
@property (nonatomic, strong) IBOutlet NSButton *viewDiscover;
@property (nonatomic, strong) IBOutlet NSButton *viewAbout;
@property (nonatomic, strong) IBOutlet NSButton *showCredits;
@property (nonatomic, strong) IBOutlet NSButton *showChanges;
Expand Down Expand Up @@ -87,7 +95,7 @@ - (void)applicationWillFinishLaunching:(NSNotification *)aNotification {

// Setup plugin table
[_tblView setHeaderView:nil];
[_tblView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleNone];
// [_tblView setSelectionHighlightStyle:NSTableViewSelectionHighlightStyleNone];
[_tblView registerForDraggedTypes:[NSArray arrayWithObject:NSFilenamesPboardType]];

[_donateButton setImage:[NSImage imageNamed:@"heart2.png"]];
Expand Down Expand Up @@ -202,6 +210,27 @@ - (NSMutableDictionary *)getmyPrefs {
// return [NSMutableDictionary dictionaryWithContentsOfFile:plist_Dock];
}

- (IBAction)changeAutoUpdates:(id)sender {
int selected = (int)[(NSPopUpButton*)sender indexOfSelectedItem];
if (selected == 0)
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:false] forKey:@"SUEnableAutomaticChecks"];
if (selected == 1)
{
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:true] forKey:@"SUEnableAutomaticChecks"];
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:false] forKey:@"SUAutomaticallyUpdate"];
}
if (selected == 2)
{
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:true] forKey:@"SUEnableAutomaticChecks"];
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:true] forKey:@"SUAutomaticallyUpdate"];
}
}

- (IBAction)changeUpdateFrequency:(id)sender {
int selected = (int)[(NSPopUpButton*)sender selectedTag];
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithInt:selected] forKey:@"SUScheduledCheckInterval"];
}

- (IBAction)changeSIMBLLogging:(id)sender {
NSString *logLevel = [NSString stringWithFormat:@"defaults write net.culater.SIMBL SIMBLLogLevel -int %ld", [_SIMBLLogging indexOfSelectedItem]];
logLevel = [self runCommand:logLevel];
Expand Down Expand Up @@ -235,6 +264,10 @@ - (void)setupWindow {
// Setup tab view
[self selectView:_viewPlugins];
[[_tabView tabViewItemAtIndex:0] setView:_tabPlugins];
[[_tabView tabViewItemAtIndex:1] setView:_tabDiscover];
[[_tabView tabViewItemAtIndex:2] setView:_tabSources];
[[_tabView tabViewItemAtIndex:3] setView:_tabPreferences];
[[_tabView tabViewItemAtIndex:4] setView:_tabAbout];

NSTabViewItem* tabItem1 = [_tabView tabViewItemAtIndex:1];
[tabItem1 setView:_tabSIMBLInstalled];
Expand Down Expand Up @@ -263,8 +296,10 @@ - (void)setupWindow {
}
}

[[_tabView tabViewItemAtIndex:1] setView:_tabPreferences];
[[_tabView tabViewItemAtIndex:2] setView:_tabAbout];
NSDictionary* infoDict = [[NSBundle mainBundle] infoDictionary];
[_appName setStringValue:[infoDict objectForKey:@"CFBundleExecutable"]];
[_appVersion setStringValue:[NSString stringWithFormat:@"Version %@ (%@)", [infoDict objectForKey:@"CFBundleShortVersionString"], [infoDict objectForKey:@"CFBundleVersion"]]];
[_appCopyright setStringValue:@"Copyright © 2015 Wolfgang Baird"];

[[_changeLog textStorage] setAttributedString:[[NSAttributedString alloc] initWithPath:[[NSBundle mainBundle] pathForResource:@"Changelog" ofType:@"rtf"] documentAttributes:nil]];
}
Expand Down Expand Up @@ -382,14 +417,15 @@ - (void)setupPrefstab {

if ([[NSUserDefaults standardUserDefaults] boolForKey:@"SUAutomaticallyUpdate"]) {
[_prefUpdateAuto selectItemAtIndex:2];
SUUpdater *myUpdater = [SUUpdater alloc];
[myUpdater checkForUpdatesInBackground];
} else if ([[NSUserDefaults standardUserDefaults] boolForKey:@"SUEnableAutomaticChecks"]) {
[_prefUpdateAuto selectItemAtIndex:1];
} else {
[_prefUpdateAuto selectItemAtIndex:0];
}

// [_prefUpdateAuto selectItemAtIndex:[[myPreferences objectForKey:@"prefUpdateAuto"] integerValue]];
[_prefUpdateInterval selectItemAtIndex:[[myPreferences objectForKey:@"prefUpdateInterval"] integerValue]];
[_prefUpdateInterval selectItemWithTag:[[myPreferences objectForKey:@"SUScheduledCheckInterval"] integerValue]];

[[_gitButton cell] setImageScaling:NSImageScaleProportionallyUpOrDown];
// [[_translateButton cell] setImageScaling:NSImageScaleProportionallyUpOrDown];
Expand Down Expand Up @@ -580,8 +616,8 @@ - (void)replaceFile:(NSString*)start :(NSString*)end {
}

- (IBAction)showAbout:(id)sender {
NSArray *tabs = [NSArray arrayWithObjects:_viewPlugins, _viewPreferences, _viewAbout, nil];
[_tabView selectTabViewItemAtIndex:2];
NSArray *tabs = [NSArray arrayWithObjects:_viewPlugins, _viewDiscover, _viewSources, _viewPreferences, _viewAbout, nil];
[_tabView selectTabViewItemAtIndex:4];
for (NSButton *g in tabs) {
if (![g isEqualTo:_viewAbout])
[g setState:NSOffState];
Expand All @@ -591,8 +627,8 @@ - (IBAction)showAbout:(id)sender {
}

- (IBAction)showPrefs:(id)sender {
NSArray *tabs = [NSArray arrayWithObjects:_viewPlugins, _viewPreferences, _viewAbout, nil];
[_tabView selectTabViewItemAtIndex:1];
NSArray *tabs = [NSArray arrayWithObjects:_viewPlugins, _viewDiscover, _viewSources, _viewPreferences, _viewAbout, nil];
[_tabView selectTabViewItemAtIndex:3];
for (NSButton *g in tabs) {
if (![g isEqualTo:_viewPreferences])
[g setState:NSOffState];
Expand Down Expand Up @@ -701,7 +737,7 @@ - (IBAction)aboutInfo:(id)sender {
}

- (IBAction)selectView:(id)sender {
NSArray *tabs = [NSArray arrayWithObjects:_viewPlugins, _viewPreferences, _viewAbout, nil];
NSArray *tabs = [NSArray arrayWithObjects:_viewPlugins, _viewDiscover, _viewSources, _viewPreferences, _viewAbout, nil];
if ([tabs containsObject:sender])
[_tabView selectTabViewItemAtIndex:[tabs indexOfObject:sender]];
for (NSButton *g in tabs) {
Expand Down Expand Up @@ -797,16 +833,21 @@ - (NSView *)tableView:(NSTableView *)tableView viewForTableColumn:(NSTableColumn
if (icon) {
result.pluginImage.image = icon;
} else {
// result.pluginImage.image = [NSImage imageNamed:@"brick.png"];
result.pluginImage.image = [[NSImage alloc] initWithContentsOfFile:@"/System/Library/CoreServices/CoreTypes.bundle/Contents/Resources/KEXT.icns"];
}

[result.pluginWeb setImage:[NSImage imageNamed:@"webicon.png"]];
[[result.pluginWeb cell] setImageScaling:NSImageScaleProportionallyUpOrDown];

[result.pluginWeb setEnabled:true];
[result.pluginWeb setHidden:false];
NSString* webURL = [info objectForKey:@"DevURL"];
if (![webURL length])
if (![webURL length]) {
[result.pluginWeb setEnabled:false];
[result.pluginWeb setHidden:true];
}


// Return the result
return result;
Expand Down
Loading

0 comments on commit 1782d53

Please sign in to comment.