Sorry... forgot to reply all... darn google. ---------- Forwarded message ---------- From: Gregory Casamento <[email protected]> Date: Tue, Aug 11, 2009 at 12:18 PM Subject: Re: [Gnustep-cvs] r28443 - in /libs/gui/trunk: ChangeLog Source/GSTextStorage.m Source/NSTextView.m To: Fred Kiefer <[email protected]> Cc: Gregory Casamento <[email protected]>, GNUstep Developer <[email protected]>
Hey Fred, Thanks for taking a look, I'm happy to answer the questions you have. What I was aiming at is the following: 1) The code, as it was, was causing a segmentation fault when editing the contents of a textview unarchived from a nib. I will provide an example of this tonight. 2) Currently, it is possible in IB to edit the contents of a NSTextView and have those come up in the live app. For example, if you want to have a set of instructions in a textview, etc... it's nice to be able to put this into the nib directly. Up until my change, the textview in Gorm and the live app would come up blank. It now shows the text. I'll put an example of this in as well. I did think it was odd that GSTextStorage encoded itself. The question now is, since it does, and, probably has, for a while, I'll need to run some tests to see if this is encoded in .gorm files or not. If we simply yank the code it could break compatibility with .gorm files created before the change. I will get back to you with results of that test. Thanks, GC On Tue, Aug 11, 2009 at 11:58 AM, Fred Kiefer<[email protected]> wrote: > Gregory Casamento schrieb: >> Author: gcasa >> Date: Sat Aug 8 09:08:23 2009 >> New Revision: 28443 >> >> URL: http://svn.gna.org/viewcvs/gnustep?rev=28443&view=rev >> Log: >> * Source/GSTextStorage.m: In initWithCoder: don't overwrite the >> contents of the text storage by attempting to unarchive when the >> unarchiver is keyed. >> * Source/NSTextView.m: In initWithCoder: retrieve the contents >> of the text storage for display in the text view. >> >> Modified: >> libs/gui/trunk/ChangeLog >> libs/gui/trunk/Source/GSTextStorage.m >> libs/gui/trunk/Source/NSTextView.m > > Greg, > > I see that you are again working on the decoding of NSTextView. But I > still don't see where you are aiming at. Last time I asked you to > provide an example of the code or NIB file that isn't working. This > still would be very helpful. > > I think you found a bug in the GSTextStorage coding, this class never > should encode itself, it is part of the class cluster NSTextStorage and > this class should do the whole coding and decoding. But there is also a > bug in the coding of the super class NSAttributedString, > > Fred > > > _______________________________________________ > Gnustep-dev mailing list > [email protected] > http://lists.gnu.org/mailman/listinfo/gnustep-dev > -- Gregory Casamento Open Logic Corporation, Principal Consultant ## GNUstep Chief Maintainer yahoo/skype: greg_casamento, aol: gjcasa (240)274-9630 (Cell), (301)362-9640 (Home) -- Gregory Casamento Open Logic Corporation, Principal Consultant ## GNUstep Chief Maintainer yahoo/skype: greg_casamento, aol: gjcasa (240)274-9630 (Cell), (301)362-9640 (Home) _______________________________________________ Gnustep-dev mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnustep-dev
