Added first responder to be set for the side view.
parent
f06ff8d17d
commit
6fb1c77e62
|
@ -8,7 +8,7 @@
|
|||
<string key="IBDocument.HIToolboxVersion">352.00</string>
|
||||
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<integer value="64"/>
|
||||
<integer value="55"/>
|
||||
</object>
|
||||
<object class="NSArray" key="IBDocument.PluginDependencies">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
|
@ -348,6 +348,22 @@
|
|||
</object>
|
||||
<int key="connectionID">98</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBOutletConnection" key="connection">
|
||||
<string key="label">nextKeyView</string>
|
||||
<reference key="source" ref="801512230"/>
|
||||
<reference key="destination" ref="299841028"/>
|
||||
</object>
|
||||
<int key="connectionID">99</int>
|
||||
</object>
|
||||
<object class="IBConnectionRecord">
|
||||
<object class="IBOutletConnection" key="connection">
|
||||
<string key="label">firstResponder</string>
|
||||
<reference key="source" ref="1001"/>
|
||||
<reference key="destination" ref="357233152"/>
|
||||
</object>
|
||||
<int key="connectionID">102</int>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBMutableOrderedSet" key="objectRecords">
|
||||
<object class="NSArray" key="orderedObjects">
|
||||
|
@ -549,7 +565,7 @@
|
|||
</object>
|
||||
</object>
|
||||
<nil key="sourceID"/>
|
||||
<int key="maxID">98</int>
|
||||
<int key="maxID">102</int>
|
||||
</object>
|
||||
<object class="IBClassDescriber" key="IBDocument.Classes">
|
||||
<object class="NSMutableArray" key="referencedPartialClassDescriptions">
|
||||
|
@ -596,7 +612,7 @@
|
|||
<string key="superclassName">NSOutlineView</string>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
<string key="minorKey">FileTreeOutlineView.h</string>
|
||||
<string key="minorKey">FileTree/FileTreeOutlineView.h</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBPartialClassDescription">
|
||||
|
@ -669,8 +685,17 @@
|
|||
<string key="className">SideView</string>
|
||||
<string key="superclassName">NSObject</string>
|
||||
<object class="NSMutableDictionary" key="outlets">
|
||||
<string key="NS.key.0">view</string>
|
||||
<string key="NS.object.0">NSView</string>
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<object class="NSMutableArray" key="dict.sortedKeys">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>firstResponder</string>
|
||||
<string>view</string>
|
||||
</object>
|
||||
<object class="NSMutableArray" key="dict.values">
|
||||
<bool key="EncodedWithXMLCoder">YES</bool>
|
||||
<string>NSResponder</string>
|
||||
<string>NSView</string>
|
||||
</object>
|
||||
</object>
|
||||
<object class="IBClassDescriptionSource" key="sourceIdentifier">
|
||||
<string key="majorKey">IBProjectSource</string>
|
||||
|
|
|
@ -12,11 +12,14 @@
|
|||
|
||||
@interface SideView : NSObject {
|
||||
IBOutlet NSView *view;
|
||||
IBOutlet NSResponder *firstResponder;
|
||||
|
||||
SideViewController *controller;
|
||||
}
|
||||
|
||||
- (id)initWithNibNamed:(NSString *)nibName controller:(SideViewController *)c;
|
||||
- (NSView *)view;
|
||||
- (NSResponder *)firstResponder;
|
||||
|
||||
- (void) addToPlaylist:(NSArray *)urls;
|
||||
|
||||
|
|
|
@ -30,6 +30,11 @@
|
|||
return view;
|
||||
}
|
||||
|
||||
- (NSResponder *)firstResponder
|
||||
{
|
||||
return firstResponder;
|
||||
}
|
||||
|
||||
- (void) addToPlaylist:(NSArray *)urls
|
||||
{
|
||||
[controller addToPlaylist:urls];
|
||||
|
|
|
@ -171,6 +171,10 @@
|
|||
|
||||
[self setDividerPosition: [[NSUserDefaults standardUserDefaults] floatForKey:@"sideViewDividerPosition"]];
|
||||
|
||||
NSWindow *window = [[sideView view] window];
|
||||
BOOL r = [window makeFirstResponder:[sideView firstResponder]];
|
||||
NSLog(@"FIRST: %@ %i", window, r);
|
||||
|
||||
[[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"showSideView"];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue