0
我创建了显示图像的自定义NSView。
我已经在Inspector视图中创建了一个属性,并绑定到File's Owner。Interface Builder Plugin负载上的图像检查器属性问题
一切工作正常运行时图像更改。 但是,当我保存并加载xib文件时,没有加载任何东西。
这里是简化代码:
IBDocument *document = [IBDocument documentForObject:self];
[self->defaultImage release];
self->defaultImage = [document documentImageNamed:aImage];
[self->defaultImage setName:aImage];
[self->defaultImage retain];
的[document documentImageNamed:aImage]
在运行时返回一个NSImage中,但是从文件加载时,它返回nil
虽然NSImageWell工作在运行时罚款,并从编码器初始化时。
我失踪了什么?
Thans。