[kismac] [binaervarianz] r121 - in KisMACng: . Resources/Nibs/English.lproj/PrefsAdvanced.nib Sources/Preferences/PreferencePanes

  • From: svn@xxxxxxxxxxxxxxxx
  • To: kismac@xxxxxxxxxxxxx
  • Date: Tue, 18 Apr 2006 09:23:59 +0200

Author: gkruse
Date: 2006-04-18 09:23:59 +0200 (Tue, 18 Apr 2006)
New Revision: 121

Modified:
   KisMACng/CHANGES
   KisMACng/Resources/Nibs/English.lproj/PrefsAdvanced.nib/info.nib
   KisMACng/Resources/Nibs/English.lproj/PrefsAdvanced.nib/objects.nib
   KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.h
   KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.m
Log:
121: - Fix problem where advanced prefs wouldn't show up if they had never been 
set before



Modified: KisMACng/CHANGES
===================================================================
--- KisMACng/CHANGES    2006-04-17 07:51:53 UTC (rev 120)
+++ KisMACng/CHANGES    2006-04-18 07:23:59 UTC (rev 121)
@@ -1,3 +1,5 @@
+R121: - Fix problem where advanced prefs wouldn't show up if they had never 
been set before
+
 R120: - Add Nibs I missed.  When creating new Nibs, be sure to remove the .svn 
dir from inside the .nib package if you copied an older nib
 
 R119: - Advanced Prefs from themacuser

Modified: KisMACng/Resources/Nibs/English.lproj/PrefsAdvanced.nib/info.nib
===================================================================
--- KisMACng/Resources/Nibs/English.lproj/PrefsAdvanced.nib/info.nib    
2006-04-17 07:51:53 UTC (rev 120)
+++ KisMACng/Resources/Nibs/English.lproj/PrefsAdvanced.nib/info.nib    
2006-04-18 07:23:59 UTC (rev 121)
@@ -3,11 +3,11 @@
 <plist version="1.0">
 <dict>
        <key>IBDocumentLocation</key>
-       <string>226 76 356 240 0 0 1024 746 </string>
+       <string>440 82 356 240 0 0 1280 832 </string>
        <key>IBEditorPositions</key>
        <dict>
                <key>109</key>
-               <string>429 59 496 454 0 0 1024 746 </string>
+               <string>392 329 496 454 0 0 1280 832 </string>
        </dict>
        <key>IBFramework Version</key>
        <string>443.0</string>
@@ -16,6 +16,6 @@
                <integer>109</integer>
        </array>
        <key>IBSystem Version</key>
-       <string>8H14</string>
+       <string>8I127</string>
 </dict>
 </plist>

Modified: KisMACng/Resources/Nibs/English.lproj/PrefsAdvanced.nib/objects.nib
===================================================================
(Binary files differ)

Modified: KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.h
===================================================================
--- KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.h        
2006-04-17 07:51:53 UTC (rev 120)
+++ KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.h        
2006-04-18 07:23:59 UTC (rev 121)
@@ -18,4 +18,5 @@
        IBOutlet id pr_interval; //deauthenticate interval
 }
 
+-(IBAction)setDefaults:(id)sender;
 @end

Modified: KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.m
===================================================================
--- KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.m        
2006-04-17 07:51:53 UTC (rev 120)
+++ KisMACng/Sources/Preferences/PreferencePanes/PrefsAdvanced.m        
2006-04-18 07:23:59 UTC (rev 121)
@@ -11,6 +11,10 @@
 @implementation PrefsAdvanced
 
 -(void)updateUI {
+    if ([controller objectForKey:@"ac_ff"] == nil) {
+        [self setDefaults:self];
+        return;
+    }
     [ac_ff setStringValue:[controller objectForKey:@"ac_ff"]];
        [bf_interval setStringValue:[controller objectForKey:@"bf_interval"]];
        [bpfdevice setStringValue:[controller objectForKey:@"bpfdevice"]];
@@ -51,10 +55,4 @@
        [pr_interval setStringValue:@"100"];
 }
 
-@end
-
-/* sample code
-NSUserDefaults *defs;
-defs = [NSUserDefaults standardUserDefaults];
-[defs objectForKey:@"bf_interval"]
-*/
+@end
\ No newline at end of file


Other related posts:

  • » [kismac] [binaervarianz] r121 - in KisMACng: . Resources/Nibs/English.lproj/PrefsAdvanced.nib Sources/Preferences/PreferencePanes