URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14804>
Summary: Problem using NSRulerView from unarchived Gorm file
Project: GNUstep
Submitted by: diablos
Submitted on: Mon 10/17/05 at 07:07
Category: Gui/AppKit
Severity: 3 - Normal
Item Group: Bug
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
The problem is the follows: when I create a gorm file with a text view in it,
save it and later unarchive it a bug behind the scenes becomes visible: the
enclosing scroll view somehow "looses" it's horizontal ruler. A discrepancy
between the _haveHorizRuler and _horizRuler ivars is created (in more detail:
_haveHorizRuler = YES, but _horizRuler = nil). So when the gorm file is
unarchived and one does -setHasHorizontalRuler:YES in, for example,
-awakeFromNib, the app crashes when trying to add a `nil' subview.
When searching for the bug's reason I found out that when the 'TextView'
control is dragged from the palette in Gorm, the horizontal ruler does exist,
but when the gorm file is saved, it suddenly does not anymore (but
_haveHorizRuler = YES). I tried to monitor all manipulations of the
_haveHorizRuler and _horizRuler ivars, but I was not able to find where the
change occurs. I do not know yet where it happens (perhaps I just didn't look
hard enough...), but I'll keep on trying to locate it and then I'll post a
bugfix. This bugreport is so that you know what I know so far...
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14804>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
_______________________________________________
Bug-gnustep mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnustep