mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 10:51:00 +00:00
* Headers/AppKit/NSWindow.h: Minor cleanup and spacing.
* Source/GSNibTemplates.m: Removed call to designated init, since this is handled by the initWithCOoder method in NSWindow.m. * Source/NSWindow.m: Correction for calling the designated initializer. Fix for bug#23336. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26567 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3e0abcb588
commit
71462c5bac
4 changed files with 25 additions and 37 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2008-05-24 10:54-EDT Gregory John Casamento <greg_casamento@yahoo.com>
|
||||||
|
|
||||||
|
* Headers/AppKit/NSWindow.h: Minor cleanup and spacing.
|
||||||
|
* Source/GSNibTemplates.m: Removed call to designated init, since
|
||||||
|
this is handled by the initWithCOoder method in NSWindow.m.
|
||||||
|
* Source/NSWindow.m: Correction for calling the designated initializer.
|
||||||
|
Fix for bug#23336.
|
||||||
|
|
||||||
2008-05-21 Fred Kiefer <FredKiefer@gmx.de>
|
2008-05-21 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSAttributedString.m (-_substituteFontFor:font:fromList:):
|
* Source/NSAttributedString.m (-_substituteFontFor:font:fromList:):
|
||||||
|
|
|
@ -910,31 +910,11 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
||||||
_screenRect = [[_object screen] frame];
|
_screenRect = [[_object screen] frame];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([self shouldSwapClass])
|
// FIXME: The designated initializer logic for NSWindow is in the initWithCoder: method of
|
||||||
{
|
// NSWindow. Unfortunately, this means that the "defer" flag for NSWindows and NSWindow
|
||||||
if (GSGetMethod([obj class], @selector(initWithContentRect:styleMask:backing:defer:), YES, NO) != NULL
|
// subclasses in gorm files will be ignored. This shouldn't have a great impact,
|
||||||
&& ![_className isEqualToString: NSStringFromClass(_superClass)])
|
// but it is not the correct behavior.
|
||||||
{
|
|
||||||
NSView *contentView = [obj contentView];
|
|
||||||
|
|
||||||
// if we are not in an interface builder, call
|
|
||||||
// designated initializer per spec...
|
|
||||||
RETAIN(contentView); // prevent view from being deallocated.
|
|
||||||
obj = [obj initWithContentRect: [contentView frame]
|
|
||||||
styleMask: [obj styleMask]
|
|
||||||
backing: [obj backingType]
|
|
||||||
defer: _deferFlag];
|
|
||||||
|
|
||||||
// set the content view back
|
|
||||||
[obj setContentView: contentView];
|
|
||||||
RELEASE(contentView); // release view.
|
|
||||||
}
|
|
||||||
|
|
||||||
// autoposition window
|
|
||||||
[self autoPositionWindow: obj];
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
//
|
//
|
||||||
// Set all of the attributes into the object, if it
|
// Set all of the attributes into the object, if it
|
||||||
// responds to any of these methods.
|
// responds to any of these methods.
|
||||||
|
@ -943,7 +923,7 @@ static NSString *GSInternalNibItemAddedNotification = @"_GSInternalNibItemAddedN
|
||||||
{
|
{
|
||||||
[obj setAutoPositionMask: [self autoPositionMask]];
|
[obj setAutoPositionMask: [self autoPositionMask]];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
RELEASE(self);
|
RELEASE(self);
|
||||||
}
|
}
|
||||||
return obj;
|
return obj;
|
||||||
|
|
|
@ -4899,11 +4899,11 @@ current key view.<br />
|
||||||
[aDecoder decodeValueOfObjCType: @encode(NSBackingStoreType)
|
[aDecoder decodeValueOfObjCType: @encode(NSBackingStoreType)
|
||||||
at: &aBacking];
|
at: &aBacking];
|
||||||
|
|
||||||
|
// call the designated initializer....
|
||||||
self = [self initWithContentRect: aRect
|
self = [self initWithContentRect: aRect
|
||||||
styleMask: aStyle
|
styleMask: aStyle
|
||||||
backing: aBacking
|
backing: aBacking
|
||||||
defer: NO
|
defer: NO];
|
||||||
screen: nil];
|
|
||||||
|
|
||||||
p = [aDecoder decodePoint];
|
p = [aDecoder decodePoint];
|
||||||
obj = [aDecoder decodeObject];
|
obj = [aDecoder decodeObject];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue