ibplugin

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

I have created a subclass of NSView to draw an image as a pattern: @interface CePatternView : NSView { NSImage* image; id observableObjectForImage; NSString* keyPathForImage; } @end I implemented the following to expose bindings: + (void)initialize { // Expose the "image" binding to IB. [self exposeBinding:@"i...

IBPlugin and paths to framework

IBCocoaSimulator crashes when IB cannot find the framework, I assume that happens to you too. I can run IBCocoaSimulator without crash, when I manually copy my framework+ibplugin from the build dir into /Users/username/Library/Frameworks. I'm doing this with Finder, this is not optimal, but works. I have searched for a smarter way and ...

How do you make a bindings view in a Interface Builder Plugin (IBPlugin)

I am trying to make property have a bindings inspector view like the textfield has for it's value. With a combo of all nonview items that has a checkbox toggle if you want to enable the binding or not. I get how to make an IBPlugin with outlets and actions but I can't figure out how to get a popupbutton with available objects in the ni...

IBPlugin: Adding additional objects on drag from IB Library

I have a list view class that just like NSCollectionView requires an additional prototype item and a prototype view to be of any use. When dropping an NSCollectionView from the library in Interface Builder those two helper items are automatically created. However I couldn't find a single official Apple document dealing with this use case...

Interface Builder Plugin Image inspector property problem on load

Hi. i have created a custom NSView that displays an image. i have created a property in Inspector view with binding to File's Owner. Everything works fine in runtime image changing. But nothing is loaded when i save and load xib file. here is the simplified code: IBDocument *document = [IBDocument documentForObject:self]; [self->defau...