replaced initial nib with direct code call

This commit is contained in:
relikd
2018-08-15 20:29:04 +02:00
parent c4110cd160
commit aa173c59f8
10 changed files with 157 additions and 229 deletions

View File

@@ -21,7 +21,7 @@
// SOFTWARE.
#import "SettingsFeeds.h"
#import "AppDelegate.h"
#import "AppHook.h"
#import "FeedConfig+Ext.h"
#import "ModalSheet.h"
#import "ModalFeedEdit.h"
@@ -43,7 +43,7 @@ static NSString *dragNodeType = @"baRSS-feed-drag";
- (void)viewDidLoad {
[super viewDidLoad];
self.dataStore.managedObjectContext = [(AppDelegate*)[NSApp delegate] persistentContainer].viewContext;
self.dataStore.managedObjectContext = [(AppHook*)NSApp persistentContainer].viewContext;
self.undoManager = self.dataStore.managedObjectContext.undoManager;
[self.outlineView registerForDraggedTypes:[NSArray arrayWithObject:dragNodeType]];
[self.dataStore setSortDescriptors:[NSArray arrayWithObject:[NSSortDescriptor sortDescriptorWithKey:@"sortIndex" ascending:YES]]];