Re: Custom Objects in an NSTextView
Re: Custom Objects in an NSTextView
- Subject: Re: Custom Objects in an NSTextView
- From: Manfred Schubert <email@hidden>
- Date: Wed, 4 Jan 2006 19:33:53 +0100
Am 04.01.2006 um 18:44 schrieb Philip Dow:
What you're asking for is not supported in any simple way by the
cocoa text system.
I'm not understanding it yet, but NSTextAttachment(Cell) might be
what I'm looking for. If anybody knows some sample code that uses
this, I would be grateful though. I'm still new to Cocoa and learn
best by seeing examples.
An alternative might be to use a custom WebView. You could make it
editable and maybe (?) override some methods to support object
resizing and whatnot.
A WebView would have been great for what I need to do, however there
are two problems.
a)
http://bugzilla.opendarwin.org/show_bug.cgi?id=4003
A WebView contents stops to be editable when it's empty. So once you
deleted all the text you are stuck with nothing.
b)
A WebView doesn't support pages. I need to be able to display the
text laid out on multiple pages and with a web view there is always
only one infinitely long page.
Manfred
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden