I sub-classed NSWindow
(named IMWindow
) to make my own properties. Now I want to bind the value of NSTextField
to one of the property of IMWindow
. I know it is possible for NSUserDefaults
controllers or app delegate. But it does not provide option for NSWindow
.
I would like to see if I can bind the value to arbitrary object.
Screenshot:
Code:
@interface IMMainWindow ()
@property (nonatomic, strong) NSString *line1Text;
@end
It is hard to find any advance material in Interface Builder for OS X. :-/