mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-02 08:30:58 +00:00
* Source/NSView.m (-initWithFrame:, -initWithCoder:) Set
_post_frame_changes and _post_bounds_changes to YES by default. Patch by Quentin Mathe <qmathe@gmail.com>. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28465 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3e16cca09b
commit
1bcf5f9b59
2 changed files with 34 additions and 6 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2009-08-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
|
* Source/NSView.m (-initWithFrame:, -initWithCoder:) Set
|
||||||
|
_post_frame_changes and _post_bounds_changes to YES by default.
|
||||||
|
Patch by Quentin Mathe <qmathe@gmail.com>.
|
||||||
|
|
||||||
2009-08-16 Fred Kiefer <FredKiefer@gmx.de>
|
2009-08-16 Fred Kiefer <FredKiefer@gmx.de>
|
||||||
|
|
||||||
* Source/NSTextStorage.m (-replacementObjectForPortCoder:): Added
|
* Source/NSTextStorage.m (-replacementObjectForPortCoder:): Added
|
||||||
|
|
|
@ -548,7 +548,8 @@ GSSetDragTypes(NSView* obj, NSArray *types)
|
||||||
//_is_rotated_from_base = NO;
|
//_is_rotated_from_base = NO;
|
||||||
//_is_rotated_or_scaled_from_base = NO;
|
//_is_rotated_or_scaled_from_base = NO;
|
||||||
_rFlags.needs_display = YES;
|
_rFlags.needs_display = YES;
|
||||||
//_post_frame_changes = NO;
|
_post_bounds_changes = YES;
|
||||||
|
_post_frame_changes = YES;
|
||||||
_autoresizes_subviews = YES;
|
_autoresizes_subviews = YES;
|
||||||
_autoresizingMask = NSViewNotSizable;
|
_autoresizingMask = NSViewNotSizable;
|
||||||
//_coordinates_valid = NO;
|
//_coordinates_valid = NO;
|
||||||
|
@ -1783,11 +1784,19 @@ convert_rect_using_matrices(NSRect aRect, NSAffineTransform *matrix1,
|
||||||
return new;
|
return new;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the receiver should post NSViewFrameDidChangeNotification
|
||||||
|
* when its frame changed.
|
||||||
|
*/
|
||||||
- (void) setPostsFrameChangedNotifications: (BOOL)flag
|
- (void) setPostsFrameChangedNotifications: (BOOL)flag
|
||||||
{
|
{
|
||||||
_post_frame_changes = flag;
|
_post_frame_changes = flag;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Sets whether the receiver should post NSViewBoundsDidChangeNotification
|
||||||
|
* when its bound changed.
|
||||||
|
*/
|
||||||
- (void) setPostsBoundsChangedNotifications: (BOOL)flag
|
- (void) setPostsBoundsChangedNotifications: (BOOL)flag
|
||||||
{
|
{
|
||||||
_post_bounds_changes = flag;
|
_post_bounds_changes = flag;
|
||||||
|
@ -4462,7 +4471,8 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
||||||
_is_rotated_from_base = NO;
|
_is_rotated_from_base = NO;
|
||||||
_is_rotated_or_scaled_from_base = NO;
|
_is_rotated_or_scaled_from_base = NO;
|
||||||
_rFlags.needs_display = YES;
|
_rFlags.needs_display = YES;
|
||||||
_post_frame_changes = NO;
|
_post_bounds_changes = YES;
|
||||||
|
_post_frame_changes = YES;
|
||||||
_autoresizes_subviews = YES;
|
_autoresizes_subviews = YES;
|
||||||
_autoresizingMask = NSViewNotSizable;
|
_autoresizingMask = NSViewNotSizable;
|
||||||
_coordinates_valid = NO;
|
_coordinates_valid = NO;
|
||||||
|
@ -4540,22 +4550,22 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
||||||
_super_view = nil;
|
_super_view = nil;
|
||||||
_window = nil;
|
_window = nil;
|
||||||
_rFlags.needs_display = YES;
|
_rFlags.needs_display = YES;
|
||||||
_coordinates_valid = NO;
|
|
||||||
|
|
||||||
_rFlags.flipped_view = [self isFlipped];
|
|
||||||
|
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL)
|
[aDecoder decodeValueOfObjCType: @encode(BOOL)
|
||||||
at: &_is_rotated_from_base];
|
at: &_is_rotated_from_base];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL)
|
[aDecoder decodeValueOfObjCType: @encode(BOOL)
|
||||||
at: &_is_rotated_or_scaled_from_base];
|
at: &_is_rotated_or_scaled_from_base];
|
||||||
|
_post_bounds_changes = YES;
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_post_frame_changes];
|
[aDecoder decodeValueOfObjCType: @encode(BOOL) at: &_post_frame_changes];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(BOOL)
|
[aDecoder decodeValueOfObjCType: @encode(BOOL)
|
||||||
at: &_autoresizes_subviews];
|
at: &_autoresizes_subviews];
|
||||||
[aDecoder decodeValueOfObjCType: @encode(unsigned int)
|
[aDecoder decodeValueOfObjCType: @encode(unsigned int)
|
||||||
at: &_autoresizingMask];
|
at: &_autoresizingMask];
|
||||||
|
_coordinates_valid = NO;
|
||||||
[self setNextKeyView: [aDecoder decodeObject]];
|
[self setNextKeyView: [aDecoder decodeObject]];
|
||||||
[[aDecoder decodeObject] setNextKeyView: self];
|
[[aDecoder decodeObject] setNextKeyView: self];
|
||||||
|
|
||||||
|
_rFlags.flipped_view = [self isFlipped];
|
||||||
|
|
||||||
[aDecoder decodeValueOfObjCType: @encode(id) at: &subs];
|
[aDecoder decodeValueOfObjCType: @encode(id) at: &subs];
|
||||||
NSDebugLLog(@"NSView", @"NSView: finish decoding\n");
|
NSDebugLLog(@"NSView", @"NSView: finish decoding\n");
|
||||||
|
|
||||||
|
@ -4683,11 +4693,23 @@ static NSView* findByTag(NSView *view, int aTag, unsigned *level)
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether the receiver posts NSViewFrameDidChangeNotification when
|
||||||
|
* its frame changed.
|
||||||
|
*
|
||||||
|
* Returns YES by default (as documented in Cocoa View Programming Guide).
|
||||||
|
*/
|
||||||
- (BOOL) postsFrameChangedNotifications
|
- (BOOL) postsFrameChangedNotifications
|
||||||
{
|
{
|
||||||
return _post_frame_changes;
|
return _post_frame_changes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns whether the receiver posts NSViewBoundsDidChangeNotification when
|
||||||
|
* its bound changed.
|
||||||
|
*
|
||||||
|
* Returns YES by default (as documented in Cocoa View Programming Guide).
|
||||||
|
*/
|
||||||
- (BOOL) postsBoundsChangedNotifications
|
- (BOOL) postsBoundsChangedNotifications
|
||||||
{
|
{
|
||||||
return _post_bounds_changes;
|
return _post_bounds_changes;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue