Re: Advanced text-layout questions
Re: Advanced text-layout questions
- Subject: Re: Advanced text-layout questions
- From: Prachi Gauriar <email@hidden>
- Date: Sun, 4 Jan 2004 17:38:02 -0600
On Jan 4, 2004, at 5:19 PM, Scott Anguish wrote:
On Jan 4, 2004, at 3:33 PM, Prachi Gauriar wrote:
Hi everyone. For a design project, I'm working on creating an
application that will need a pretty sophisticated text system...
it'll basically end up being a limited standards-based WYSIWYG HTML
editor. I've been brainstorming for a few days on how to approach
the text system, and I'm really perplexed as to how I can achieve
some things. After reading the text architecture documentation, I'm
kind of at a loss about how to approach some problems. The big
problem right now is:
well, I hope that Doug Davidson will provide input here, but...
it's hard to tell if you're trying to just display the tree, or the
actual content?
If I understand you correctly, I'll be displaying the actual content.
It will be something along the lines of Create, where there is no
XHTML/CSS as far as the user is concerned. The user just creates what
(s)he wants to see, and the app generates XHTML/CSS based off of that.
I was thinking of making a custom view (let's call it PGCanvas) with an
NSTextView (subclass?) embedded within it representing the body text.
You could then insert divs, images, tables, and lists in that as custom
views embedded in text attachments. If the user chose to remove a div
from from the normal flow by using absolute positioning, I would remove
the attachment from the text and add a new child PGCanvas to the
document's PGCanvas which represents the new div. That could then be
positioned arbitrarily on the canvas, just like an object in
OmniGraffle or Create.
Does that make any sense?
(here's hoping that your limited standards compliant HTML editor is
more an XML editor! :-)
Probably not... :-( It's more for beginners to create
standards-compliant sites, and for intermediates/experts to prototype
more complicated designs.
-Prachi
_______________________________________________
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.