How can I increase my window size when dragging an object in the window, after it's bounds using cappuccino. Here is my sample code:
if(dragLocation.x < 1000.0 && dragLocation.y < 600.0) {
//drag is within the drawable area
[self setFrameOrigin:CGPointMake(dragLocation.x, dragLocation.y)];
dragLocation = location;
}
else {
//object is dragged out of window
// the window has to be resized now
//how????
}
The problem is like, when I drag an object out of my window it is disappearing. I want it to be appear by enlarging the window. How can I do that in cappuccino. Any suggestions would be helpful. Thanks in advance.