Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 28 lines (21 sloc) 0.786 kB
35ff1f1 @mrvacbob Preparation for migration
mrvacbob authored
1 //
2 // OENonARCHacks.m
3 // OpenEmu
4 //
5
6 #import "OESidebarOutlineView.h"
58420a6 @mrvacbob Migrate to ARC
mrvacbob authored
7 #import "OESidebarOutlineButtonCell.h"
8 #import <objc/runtime.h>
49a7377 @mrvacbob Merge branch 'newui' into ARC
mrvacbob authored
9 #import "NSViewController+OEAdditions.h"
35ff1f1 @mrvacbob Preparation for migration
mrvacbob authored
10
11 @implementation OESidebarOutlineView (OEPrivate)
12
13 - (void)setupOutlineCell{
14 OESidebarOutlineButtonCell *sidebarOutlineCell = [[OESidebarOutlineButtonCell alloc] init];
15 [sidebarOutlineCell retain];
16
17 void *currentCell;
18 object_getInstanceVariable(self, "_outlineCell", &currentCell);
19 [(id)currentCell release];
20 object_getInstanceVariable(self, "_trackingOutlineCell", &currentCell);
21 [(id)currentCell release];
22
23 object_setInstanceVariable(self, "_outlineCell", sidebarOutlineCell);
24 object_setInstanceVariable(self, "_trackingOutlineCell", sidebarOutlineCell);
25 }
26
27 @end
Something went wrong with that request. Please try again.