Resetting Textured Window "background area"
Resetting Textured Window "background area"
- Subject: Resetting Textured Window "background area"
- From: email@hidden
- Date: Fri, 27 Sep 2002 13:37:46 -0700
I've got an app with a textured main window which enables moving the
window by grabbing any textured area. This window has some collapsible
content that's enabled simply by resizing an NSBox (holding the
collapsible view) and resizing the window. I've noticed that when I
expand the content again, the content view of the NSBox is still
considered to be part of the window background in that you can move the
window by grabbing that portion of the window. Somehow... I need to
tell the window to recalculate it's movable area. Has anyone else
encountered something similar?
Here's my collapse/expand code, in case it helps:
- (IBAction)showBrowser:(BOOL)flag;
{
NSRect winFrame;
NSPoint winOrigin;
winFrame = [window frame];
winOrigin = winFrame.origin;
if (flag) {
[window setFrame:NSMakeRect(winOrigin.x, winOrigin.y, 600, 470)
display:YES animate:YES];
[addressTableBox setFrameSize:NSMakeSize(558,124)];
[addressTableView setNeedsDisplay:YES];
} else {
[addressTableBox setFrameSize:NSMakeSize(558,0)];
[[addressTableBox superview] display];
[window setFrame:NSMakeRect(winOrigin.x, winOrigin.y, 600, 325)
display:YES animate:YES];
}
addressListDisplayed = flag;
}
Any comments are greatly appreciated!
Thanks,
- Eric
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.