- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Mac/PythonLauncher/PreferencesWindowController.m
r2 r391 6 6 { 7 7 static PreferencesWindowController *_singleton; 8 8 9 9 if (!_singleton) 10 10 _singleton = [[PreferencesWindowController alloc] init]; … … 22 22 { 23 23 NSString *title = [filetype titleOfSelectedItem]; 24 24 25 25 settings = [FileSettings getDefaultsForFileType: title]; 26 26 } … … 28 28 - (void)update_display 29 29 { 30 // [[self window] setTitle: script]; 31 32 [interpreter reloadData]; 30 [interpreter reloadData]; 33 31 [interpreter setStringValue: [settings interpreter]]; 34 32 [honourhashbang setState: [settings honourhashbang]]; … … 42 40 [with_terminal setState: [settings with_terminal]]; 43 41 // Not scriptargs, it isn't for preferences 44 45 42 [commandline setStringValue: [settings commandLineForScript: @"<your script here>"]]; 46 43 } … … 76 73 } 77 74 78 // FileSettingsSource protocol 75 // FileSettingsSource protocol 79 76 - (NSString *) interpreter { return [interpreter stringValue];}; 80 77 - (BOOL) honourhashbang { return [honourhashbang state]; }; … … 99 96 - (unsigned int)comboBox:(NSComboBox *)aComboBox indexOfItemWithStringValue:(NSString *)aString 100 97 { 101 98 NSArray *interp_list = [settings interpreters]; 102 99 unsigned int rv = [interp_list indexOfObjectIdenticalTo: aString]; 103 100 return rv; 104 101 } 105 102 106 103 - (id)comboBox:(NSComboBox *)aComboBox objectValueForItemAtIndex:(int)index 107 104 { 108 105 NSArray *interp_list = [settings interpreters]; 109 106 id rv = [interp_list objectAtIndex: index]; 110 107 return rv; 111 108 } 112 109 113 110 - (int)numberOfItemsInComboBox:(NSComboBox *)aComboBox 114 111 { 115 112 NSArray *interp_list = [settings interpreters]; 116 113 int rv = [interp_list count]; 117 114 return rv; 118 115 } 119 116
Note:
See TracChangeset
for help on using the changeset viewer.