• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
disappearing controls after custom Zoom
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

disappearing controls after custom Zoom


  • Subject: disappearing controls after custom Zoom
  • From: Jake <email@hidden>
  • Date: Thu, 29 Nov 2001 18:07:55 -0500 (EST)

Trying to override the default zooming behavior, i implemented the
delegate -windowShouldZoom:toFrame: in the window controller, except I
returning NO all the time and ignores the newFrame parameter and do the
manual zooming in the code. something like

- (BOOL)windowShouldZoom:(NSWindow *)sender toFrame:(NSRect)newFrame
{
NSRect newSize;
NSWindow *w;

w = [self window]
oldSize = [w frame];
newSize = oldSize;

newSize.size.height = myBestHeight;
newSize.size.width = myBestWidth;

[w setFrame:newSize display:YES animate:YES];

return NO;
}

while this worked great, I notice that if I set my width and height to be
smaller than the original windows size, some control that were obscured in
the smaller frame disappears when I make the window bigger again. The only
exception is that the TabView was not effected. I experiemented with
disabling the oneShot option, but didn't see a difference.

Can someone shed some light on this? Also, is this the right way to
override default zooming? Thanks.

Jake


  • Prev by Date: Re: Info about incoming messages over DO
  • Next by Date: IB Disappears
  • Previous by thread: Solution: using standard C ANSI typedef struct
  • Next by thread: IB Disappears
  • Index(es):
    • Date
    • Thread