views:

15

answers:

0

I have created a simple custom NSView (plugin item)

When i do resize my NSView in interface builder - everything displays normally (black rect)

But when i drag NSView to reposition it, nothing is displayed.

What method should be implemented to fix this issue?

-(void)drawRect:(NSRect)dirtyRect
{
    [super drawRect:dirtyRect];
    [NSBezierPath fillRect:[self bounds]];
}

Thanks!