Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set image from the NIB instead of during setup.

  • Loading branch information...
commit d27f6b39466b59c3dc7f026be1d355d717e1b655 1 parent f885b8d
@Manfred Manfred authored
Showing with 12 additions and 7 deletions.
  1. +12 −0 English.lproj/PassengerPref.xib
  2. +0 −7 app/controllers/PassengerPref.m
View
12 English.lproj/PassengerPref.xib
@@ -173,6 +173,10 @@
<reference key="NSControlView" ref="535317141"/>
<int key="NSButtonFlags">-2033434369</int>
<int key="NSButtonFlags2">162</int>
+ <object class="NSCustomResource" key="NSNormalImage">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">OpenInBrowserTemplate</string>
+ </object>
<string key="NSAlternateContents"/>
<string key="NSKeyEquivalent"/>
<int key="NSPeriodicDelay">400</int>
@@ -883,6 +887,10 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSImageCell" key="NSCell" id="755436727">
<int key="NSCellFlags">130560</int>
<int key="NSCellFlags2">33554432</int>
+ <object class="NSCustomResource" key="NSContents">
+ <string key="NSClassName">NSImage</string>
+ <string key="NSResourceName">label</string>
+ </object>
<int key="NSAlign">0</int>
<int key="NSScale">0</int>
<int key="NSStyle">0</int>
@@ -2759,11 +2767,15 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSAddTemplate</string>
<string>NSRemoveTemplate</string>
+ <string>OpenInBrowserTemplate</string>
+ <string>label</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>{8, 8}</string>
<string>{8, 8}</string>
+ <string>{14, 14}</string>
+ <string>{64, 64}</string>
</object>
</object>
</data>
View
7 app/controllers/PassengerPref.m
@@ -28,13 +28,6 @@ - (void) mainViewDidLoad {
}
- (void) setupUI {
- NSImage *browserButtonImage;
-
- [passengerIconView setImage:[[NSImage alloc] initByReferencingFile:[[self bundle] pathForImageResource:@"label"]]];
- browserButtonImage = [[NSImage alloc] initByReferencingFile:[[self bundle] pathForImageResource:@"OpenInBrowserTemplate"]];
- [browserButtonImage setTemplate:YES];
- [openInBrowserButton setImage:browserButtonImage];
-
[self setTextStateColor:NSColor.disabledControlTextColor];
}
Please sign in to comment.
Something went wrong with that request. Please try again.