mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 05:10:58 +00:00
Propagate the change of NSWindow's designated initializer to all
affected subclasses. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30394 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
e8d8c17ac8
commit
be698a3d7c
5 changed files with 13 additions and 14 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2010-05-15 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
|
* Source/NSAlert.m:
|
||||||
|
* Source/NSDrawer.m:
|
||||||
|
* Source/NSHelpPanel.m:
|
||||||
|
* Source/NSPrintPanel.m: Propagate the change of NSWindow's
|
||||||
|
designated initializer to all affected subclasses.
|
||||||
|
|
||||||
2010-05-14 Wolfgang Lux <wolfgang.lux@gmail.com>
|
2010-05-14 Wolfgang Lux <wolfgang.lux@gmail.com>
|
||||||
|
|
||||||
* Source/GSGormLoading.m (-awakeWithContext): Add support for a
|
* Source/GSGormLoading.m (-awakeWithContext): Add support for a
|
||||||
|
|
|
@ -362,8 +362,7 @@ setControl(NSView* content, id control, NSString *title)
|
||||||
self = [self initWithContentRect: r
|
self = [self initWithContentRect: r
|
||||||
styleMask: NSTitledWindowMask
|
styleMask: NSTitledWindowMask
|
||||||
backing: NSBackingStoreRetained
|
backing: NSBackingStoreRetained
|
||||||
defer: YES
|
defer: YES];
|
||||||
screen: nil];
|
|
||||||
|
|
||||||
if (self == nil)
|
if (self == nil)
|
||||||
return nil;
|
return nil;
|
||||||
|
@ -955,7 +954,6 @@ setControl(NSView* content, id control, NSString *title)
|
||||||
styleMask: (unsigned int)aStyle
|
styleMask: (unsigned int)aStyle
|
||||||
backing: (NSBackingStoreType)bufferingType
|
backing: (NSBackingStoreType)bufferingType
|
||||||
defer: (BOOL)flag
|
defer: (BOOL)flag
|
||||||
screen: (NSScreen*)aScreen
|
|
||||||
{
|
{
|
||||||
if(NSIsEmptyRect(contentRect))
|
if(NSIsEmptyRect(contentRect))
|
||||||
{
|
{
|
||||||
|
@ -965,8 +963,7 @@ setControl(NSView* content, id control, NSString *title)
|
||||||
self = [super initWithContentRect: contentRect
|
self = [super initWithContentRect: contentRect
|
||||||
styleMask: NSBorderlessWindowMask
|
styleMask: NSBorderlessWindowMask
|
||||||
backing: bufferingType
|
backing: bufferingType
|
||||||
defer: flag
|
defer: flag];
|
||||||
screen: aScreen];
|
|
||||||
|
|
||||||
if (self != nil)
|
if (self != nil)
|
||||||
{
|
{
|
||||||
|
|
|
@ -96,7 +96,6 @@ static NSNotificationCenter *nc = nil;
|
||||||
styleMask: (unsigned int)aStyle
|
styleMask: (unsigned int)aStyle
|
||||||
backing: (NSBackingStoreType)bufferingType
|
backing: (NSBackingStoreType)bufferingType
|
||||||
defer: (BOOL)flag
|
defer: (BOOL)flag
|
||||||
screen: (NSScreen*)aScreen
|
|
||||||
{
|
{
|
||||||
if(NSIsEmptyRect(contentRect))
|
if(NSIsEmptyRect(contentRect))
|
||||||
{
|
{
|
||||||
|
@ -106,8 +105,7 @@ static NSNotificationCenter *nc = nil;
|
||||||
self = [super initWithContentRect: contentRect
|
self = [super initWithContentRect: contentRect
|
||||||
styleMask: aStyle
|
styleMask: aStyle
|
||||||
backing: bufferingType
|
backing: bufferingType
|
||||||
defer: flag
|
defer: flag];
|
||||||
screen: aScreen];
|
|
||||||
if (self != nil)
|
if (self != nil)
|
||||||
{
|
{
|
||||||
NSRect rect = contentRect;
|
NSRect rect = contentRect;
|
||||||
|
|
|
@ -133,7 +133,6 @@ static NSHelpPanel *_sharedPanel = nil;
|
||||||
styleMask: (unsigned int)aStyle
|
styleMask: (unsigned int)aStyle
|
||||||
backing: (NSBackingStoreType)bufferingType
|
backing: (NSBackingStoreType)bufferingType
|
||||||
defer: (BOOL)flag
|
defer: (BOOL)flag
|
||||||
screen: (NSScreen*)aScreen
|
|
||||||
{
|
{
|
||||||
if (_sharedPanel == nil)
|
if (_sharedPanel == nil)
|
||||||
{
|
{
|
||||||
|
@ -147,8 +146,7 @@ static NSHelpPanel *_sharedPanel = nil;
|
||||||
self = [super initWithContentRect: contentRect
|
self = [super initWithContentRect: contentRect
|
||||||
styleMask: NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask
|
styleMask: NSTitledWindowMask|NSClosableWindowMask|NSResizableWindowMask
|
||||||
backing: NSBackingStoreBuffered
|
backing: NSBackingStoreBuffered
|
||||||
defer: NO
|
defer: NO];
|
||||||
screen: nil];
|
|
||||||
[self setReleasedWhenClosed: NO];
|
[self setReleasedWhenClosed: NO];
|
||||||
[self setTitle: _(@"Help")];
|
[self setTitle: _(@"Help")];
|
||||||
s = [[NSScrollView alloc] initWithFrame: contentRect];
|
s = [[NSScrollView alloc] initWithFrame: contentRect];
|
||||||
|
|
|
@ -123,7 +123,6 @@ static NSPrintPanel *shared_instance;
|
||||||
styleMask: (unsigned int)aStyle
|
styleMask: (unsigned int)aStyle
|
||||||
backing: (NSBackingStoreType)bufferingType
|
backing: (NSBackingStoreType)bufferingType
|
||||||
defer: (BOOL)flag
|
defer: (BOOL)flag
|
||||||
screen: (NSScreen*)aScreen
|
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
id control;
|
id control;
|
||||||
|
@ -134,8 +133,7 @@ static NSPrintPanel *shared_instance;
|
||||||
self = [super initWithContentRect: contentRect
|
self = [super initWithContentRect: contentRect
|
||||||
styleMask: aStyle
|
styleMask: aStyle
|
||||||
backing: bufferingType
|
backing: bufferingType
|
||||||
defer: flag
|
defer: flag];
|
||||||
screen: aScreen];
|
|
||||||
if (self == nil)
|
if (self == nil)
|
||||||
return nil;
|
return nil;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue