forked from dkimitsa/ibtool
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathibgen.py
More file actions
executable file
·36 lines (21 loc) · 812 Bytes
/
ibgen.py
File metadata and controls
executable file
·36 lines (21 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/python
import os
import sys
import struct
from genlib import *
view = NibObject('UIView')
viewController = NibObject('UINavigationController')
viewController['UIView'] = view
root = NibObject('NSObject')
firstResponder = NibObject('UIProxyObject')
firstResponder['UIProxiedObjectIdentifier'] = "IBFirstResponder"
filesOwner = NibObject('UIProxyObject')
filesOwner['UIProxiedObjectIdentifier'] = "IBFilesOwner"
root['UINibTopLevelObjectsKey'] = [ filesOwner, firstResponder, viewController ]
root['UINibObjectsKey'] = [ firstResponder, filesOwner, viewController ]
root['UINibConnectionsKey'] = [ ]
root['UINibVisibleWindowsKey'] = []
root['UINibAccessibilityConfigurationsKey'] = [ ]
root['UINibTraitStorageListsKey'] = [ ]
root['UINibKeyValuePairsKey'] = [ ]
CompileNibObjects([root])