+exposeBinding not working

前端 未结 2 675
梦谈多话
梦谈多话 2021-01-21 18:53

I\'m trying to expose a custom binding in an subclass of an NSWindowController. I added the following code to the subclass:

+(void)initialize { [self exposeBindin

2条回答
  •  遇见更好的自我
    2021-01-21 19:38

    These methods are for use in legacy Interface Builder plug-ins only. Xcode 4 doesn't officially support plug-ins. You have create these bindings in code using -bind:toObject:withKeyPath:options:. The “type whatever you like” part only applies to the key paths you bind to, not to the binding names themselves.

提交回复
热议问题