bugGNUstep - Bugs: bug #13873, Text color not saved in NSTextView

Group
 
 

bug #13873: Text color not saved in NSTextView

Submitter:  Fabien VALLON <Fabien_>
Submitted:  Thu 21 Jul 2005 10:19:03 AM UTC
   
 
Category:  Gui/AppKit Severity:  3 - Normal
Item Group:  Bug Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 03 Oct 2005 01:28:07 PM UTC, comment #2: 

Gregs analysis is correct, this is the problem of the AppKit not storing the typing attributes for NSTextView. Asusual with encoding stuff, any change here wont be backwards compatible. That's why I would like to have an agreed on solution, so we only need to change it once.

I would suggest to store all the typing, selection and mark attributes in a way similar to the onces used for keyed encoding by Apple, that is in the special class NSTextViewSharedData, which is already in the file NSTextView.m.
This does not necessarily mean that we have to use this class during text processing as well. We can decide on that later on. I must admit that the current mechanism to synchronize different text views, although it is very elegant, looks rather complex to me.

Fred Kiefer <FredKiefer>
Group Member
Fri 22 Jul 2005 03:46:42 AM UTC, comment #1: 

This can be tested in Gorm, using the instructions above, but it is not a Gorm issue.  It seems that in encodeWithCoder: text color is not saved.  GJC

Gregory John Casamento <gcasa>
Group administrator
Thu 21 Jul 2005 10:19:03 AM UTC, original submission:  

1) New Applciation
2) Add a TextView
3) Change the TextColor
4) Save the document
5) quit the document
6) Open The document again
7) select the textView
8) The textView textColor is black ( default )

The strange thing is that ok: in GormTextViewAttributesInspector
is called with sender textColor when the document is closed ( that odd )
TODO : check other Inspectors too

Fabien VALLON <Fabien_>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2005-07-22 gcasa CategoryGorm Gui/AppKit
    SummaryTextViewInspector: textColor not saved Text color not saved in NSTextView

Back to the top

Powered by Savane 3.13-8ccc.
Corresponding source code