gnustep-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gnustep-cvs] r28443 - in /libs/gui/trunk: ChangeLog Source/GSTextS


From: Gregory Casamento
Subject: Re: [Gnustep-cvs] r28443 - in /libs/gui/trunk: ChangeLog Source/GSTextStorage.m Source/NSTextView.m
Date: Tue, 11 Aug 2009 12:18:56 -0400

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<address@hidden> 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
> address@hidden
> 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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]