• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Custom Objects in an NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Custom Objects in an NSTextView
      • From: Douglas Davidson <email@hidden>
References: 
 >Custom Objects in an NSTextView (From: Manfred Schubert <email@hidden>)
 >Re: Custom Objects in an NSTextView (From: Philip Dow <email@hidden>)

  • Prev by Date: Re: perform ... afterDelay? [solved]
  • Next by Date: Re: Custom Objects in an NSTextView
  • Previous by thread: Re: Custom Objects in an NSTextView
  • Next by thread: Re: Custom Objects in an NSTextView
  • Index(es):
    • Date
    • Thread