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

 
 

You are not allowed to post comments on this tracker with your current authentification level.

bug #13873: Text color not saved in NSTextView

Submitted by:  Fabien VALLON <Fabien_>
Submitted on:  Thu 21 Jul 2005 10:19:03 AM UTC  
 
Category: Gui/AppKitSeverity: 3 - Normal
Item Group: BugStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

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>
Project 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>
Project 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_>
Project Member

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 2 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 22 Jul 2005 03:46:42 AM UTCgcasaCategoryGorm=>Gui/AppKit
  SummaryTextViewInspector: textColor not saved=>Text color not saved in NSTextView

Back to the top


Powered by Savane 3.1-cleanup