New Rev MultiColumn Text Code Posted - With BUG!
New Rev MultiColumn Text Code Posted - With BUG!
- Subject: New Rev MultiColumn Text Code Posted - With BUG!
- From: Steve Sheets <email@hidden>
- Date: Tue, 10 Dec 2002 15:11:25 -0500
HELP!
I have posted the modified version of ThreeColumnTextViewSample at my
website (
http://members.aol.com/magesteve/sourcecode.html). This is a
work in process, i.e. it currently is buggy. As you can read below,
ThreeColumnTextViewSample is a program to demonstate Cocoa Text engine,
specifically the multicolumn text ability. Could someone who is good
with the text engine take a look at this? Thanks to a couple peoples
help, we fixed the minor memory leakage, but still having basic
problems setting up the containers so that reflowing them, when the
text is selected, causes a crash (see below).
Again the site is:
http://members.aol.com/magesteve/sourcecode.html
Please read below for a better description of the problem.
Thanks,
Steve Sheets
Midnight Mage Software
email@hidden
----
ThreeColumnTextViewSample - Rev 1.0.1 - CURRENT BUGGY - PLEASE HELP!
ThreeColumnTextViewSample is a program to demonstate Cocoa Text engine.
It uses the custom view MFThreeColumnTextView to display a scrollable
view containing multicolumn selectable text (ie. read only, not
editable). The user can set it for 1-3 columns, and various font sizes,
the view is redrawn with the new settings. The text is broken up by
page (using the default printer page size), 1-3 columns to the page.
MFThreeColumnTextView supports headers and footers (including ones with
page number & date information).
MFThreeColumnTextView works fine, allowing user to change number of
columns and font size on the fly, until the User selects some text.Then
when a change occurs, the program crashes with "ThreeColumnTextSampler
has exited due to signal 10 (SIGBUS).". Obviously this is not good. I
suspect the problem is in my setup of the Containers. The crash does
not occur if I remove the line [a_text_container autorelease]; in
tctEndEdit, but that causes memory leakage.
PLEASE any help with the program would be appreciated. The final bug
free code will be posted.
----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.