Binding a custom NSView: Does it demand creating an IBPlugin?

前端 未结 4 1139
闹比i
闹比i 2021-02-19 09:01

I have created a subclass of NSView to draw an image as a pattern:

@interface CePatternView : NSView
{
    NSImage*    image;
    id      observableObjectForImag         


        
4条回答
  •  遇见更好的自我
    2021-02-19 09:38

    I simply bound my controller object to my view object using a different, standard binding (say, toolTip), then edited the XIB file using a text editor and altered the XML manually.

    Thereafter, the binding works correctly and even shows up in Interface Builder correctly to boot!

提交回复
热议问题