- Fixed problem with -[NSWindow setMenu:] causing window display prior to awakeFromNib

- Changed some of the build install permissions from a-w to og-w as u-w was causing problems
This commit is contained in:
Christopher Lloyd 2008-02-03 06:10:46 +00:00
parent add665f492
commit c365e20d59
7 changed files with 12 additions and 3 deletions

View File

@ -3427,6 +3427,7 @@
GCC_PREFIX_HEADER = "";
GCC_UNROLL_LOOPS = YES;
INFOPLIST_FILE = Info.plist;
INSTALL_MODE_FLAG = "og-w,a+rX";
INSTALL_PATH = /Developer/Cocotron/1.0/Windows/i386/Frameworks;
OTHER_CFLAGS = (
"-DAPPKIT_INSIDE_BUILD",

View File

@ -1917,7 +1917,10 @@ NSString *NSWindowDidAnimateNotification=@"NSWindowDidAnimateNotification";
frame=[self frame];
frame.size.height+=(newSize.height-oldSize.height);
[self setFrame:frame display:YES];
// no display because setMenu: is called before awakeFromNib
[self setFrame:frame display:NO];
// do we even need this?
[_backgroundView setNeedsDisplay:YES];
}
_menu=[menu copy];

View File

@ -81,7 +81,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-(void)update {
[[self openGLContext] update];
// we don't want to create the context if it doesn't exist
[_context update];
}
-(void)reshape {
@ -89,7 +90,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
}
-(void)prepareOpenGL {
// do nothing?
// do nothing
}
-(BOOL)isOpaque {

View File

@ -298,6 +298,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_MODE_FLAG = "og-w,a+rX";
INSTALL_PATH = /Developer/Cocotron/1.0/Windows/i386/Frameworks;
OTHER_CFLAGS = (
"-DCOCOA_INSIDE_BUILD",

View File

@ -8514,6 +8514,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_UNROLL_LOOPS = YES;
INFOPLIST_FILE = Info.plist;
INSTALL_MODE_FLAG = "og-w,a+rX";
INSTALL_PATH = /Developer/Cocotron/1.0/Windows/i386/Frameworks;
OTHER_CFLAGS = (
"-DFOUNDATION_INSIDE_BUILD",

View File

@ -199,6 +199,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_MODE_FLAG = "og-w,a+rX";
INSTALL_PATH = /Developer/Cocotron/1.0/Windows/i386/Frameworks;
OTHER_LDFLAGS = (
"-shared",

View File

@ -577,6 +577,7 @@
GCC_PRECOMPILE_PREFIX_HEADER = NO;
GCC_PREFIX_HEADER = "";
INFOPLIST_FILE = Info.plist;
INSTALL_MODE_FLAG = "og-w,a+rX";
INSTALL_PATH = /Developer/Cocotron/1.0/Windows/i386/Frameworks;
OTHER_CFLAGS = (
"-DOBJC_INSIDE_BUILD",