<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13770" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
+<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="13771" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none" useAutolayout="YES">
<dependencies>
<deployment identifier="macosx"/>
<development version="8000" identifier="xcode"/>
- <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13770"/>
+ <plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="13771"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<font key="font" metaFont="smallSystem"/>
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
+ <connections>
+ <action selector="renamed:" target="-2" id="ZKl-KQ-seA"/>
+ </connections>
</textFieldCell>
<connections>
<binding destination="czB-kB-CXf" name="editable" keyPath="objectValue.isBuiltIn" id="ynB-cm-NHg">
- (void)selectionDidChange
{
- if (fPresetsView.selectedPreset != self.currentPreset || self.edited)
- {
- [self applyPreset:fPresetsView.selectedPreset];
- }
+ [self applyPreset:fPresetsView.selectedPreset];
}
#pragma mark - Presets
}
}
+- (IBAction)renamed:(id)sender
+{
+ if (self.delegate && [[self.treeController.selectedObjects firstObject] isLeaf])
+ {
+ [self.delegate selectionDidChange];
+ [[NSNotificationCenter defaultCenter] postNotificationName:HBPresetsChangedNotification object:nil];
+ }
+}
+
- (IBAction)addNewPreset:(id)sender
{
if (self.delegate)