Commit 82876db8 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: CAS: simplification

parent 907320e9
......@@ -12,8 +12,8 @@
</object>
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool>
<integer value="2"/>
<integer value="132"/>
<integer value="10"/>
</object>
<object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool>
......@@ -2095,14 +2095,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
</object>
<int key="connectionID">99</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">profileSelection:</string>
<reference key="source" ref="203744709"/>
<reference key="destination" ref="803077624"/>
</object>
<int key="connectionID">100</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">windowButtonAction:</string>
......@@ -4000,9 +3992,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{617, 266}, {663, 490}}</string>
<string>{{305, 266}, {663, 490}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{617, 266}, {663, 490}}</string>
<string>{{305, 266}, {663, 490}}</string>
<boolean value="NO"/>
<string>{196, 240}</string>
<string>{{357, 418}, {480, 270}}</string>
......@@ -4023,9 +4015,9 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<object class="NSAffineTransform">
<bytes key="NSTransformStruct">P4AAAL+AAABDUQAAwmgAAA</bytes>
</object>
<string>{{292, 96}, {558, 370}}</string>
<string>{{329, 96}, {558, 370}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>{{292, 96}, {558, 370}}</string>
<string>{{329, 96}, {558, 370}}</string>
<boolean value="NO"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
......@@ -4356,7 +4348,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>closeCustomizationSheet:</string>
<string>customizeProfile:</string>
<string>openMedia:</string>
<string>profileSelection:</string>
<string>windowButtonAction:</string>
</object>
<object class="NSMutableArray" key="dict.values">
......@@ -4366,7 +4357,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>id</string>
<string>id</string>
<string>id</string>
<string>id</string>
</object>
</object>
<object class="NSMutableDictionary" key="actionInfosByName">
......@@ -4377,7 +4367,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string>closeCustomizationSheet:</string>
<string>customizeProfile:</string>
<string>openMedia:</string>
<string>profileSelection:</string>
<string>windowButtonAction:</string>
</object>
<object class="NSMutableArray" key="dict.values">
......@@ -4398,10 +4387,6 @@ AAMAAAABAAEAAAFTAAMAAAAEAAAFwgAAAAAACAAIAAgACAABAAEAAQABA</bytes>
<string key="name">openMedia:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">profileSelection:</string>
<string key="candidateClassName">id</string>
</object>
<object class="IBActionInfo">
<string key="name">windowButtonAction:</string>
<string key="candidateClassName">id</string>
......
......@@ -104,7 +104,6 @@
- (IBAction)windowButtonAction:(id)sender;
- (IBAction)openMedia:(id)sender;
- (IBAction)profileSelection:(id)sender;
- (IBAction)customizeProfile:(id)sender;
- (IBAction)closeCustomizationSheet:(id)sender;
- (IBAction)chooseDestination:(id)sender;
......
......@@ -243,17 +243,6 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
{
}
- (IBAction)profileSelection:(id)sender
{
NSInteger index = [sender indexOfSelectedItem];
if (index != ([sender numberOfItems] - 1))
{
if (_currentProfile)
[_currentProfile release];
_currentProfile = [[NSMutableArray alloc] initWithArray: [[_profileValueList objectAtIndex:index] componentsSeparatedByString:@";"]];
}
}
- (IBAction)customizeProfile:(id)sender
{
[self resetCustomizationSheetBasedOnProfile:[_profileValueList objectAtIndex:[_profile_pop indexOfSelectedItem]]];
......@@ -416,6 +405,10 @@ static VLCConvertAndSave *_o_sharedInstance = nil;
}
}
}
if (_currentProfile)
[_currentProfile release];
_currentProfile = [[NSMutableArray alloc] initWithArray: [profileString componentsSeparatedByString:@";"]];
}
- (void)selectCellByEncapsulationFormat:(NSString *)format
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment