From e4d10b604ae339d0c036188abe59f5d2fffdb814 Mon Sep 17 00:00:00 2001
From: Pavel Akhrameev
Date: Fri, 18 Oct 2013 09:36:56 +0400
Subject: [PATCH] support subclasses from .xib-files
---
JASidePanels/Source/JASidePanelController.m | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/JASidePanels/Source/JASidePanelController.m b/JASidePanels/Source/JASidePanelController.m
index 811dd5c..557fcd9 100644
--- a/JASidePanels/Source/JASidePanelController.m
+++ b/JASidePanels/Source/JASidePanelController.m
@@ -123,6 +123,15 @@ - (id)initWithCoder:(NSCoder *)aDecoder {
return self;
}
+//Support subclasses from .xib-files
+- (id) initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
+{
+ if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) {
+ [self _baseInit];
+ }
+ return self;
+}
+
- (id)init {
if (self = [super init]) {
[self _baseInit];