Re: Laying out text in NSTextView around a subview

2013-04-30 Thread Seth Willits
On Apr 30, 2013, at 7:01 AM, Jason Brennan wrote: > Yeah what I'm trying to do mostly is a "block" element in the text, "inline" > is just a side thing, not essential. What I'm trying to do is best described > as an analogy with HTML. > > Let's say I've got the following HTML: > > This is a pa

Re: Laying out text in NSTextView around a subview

2013-04-30 Thread Jason Brennan
Yeah what I'm trying to do mostly is a "block" element in the text, "inline" is just a side thing, not essential. What I'm trying to do is best described as an analogy with HTML. Let's say I've got the following HTML: This is a paragraph Another paragraph I'm only using as an example because i

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Seth Willits
On Apr 29, 2013, at 11:08 AM, Seth Willits wrote: >> What I’m trying to do is have an NSTextView and add custom NSView subviews >> to it, but have it so the text can layout around the subviews. > > You need a custom text container. See > http://developer.apple.com/library/mac/#samplecode/TextLa

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Seth Willits
On Apr 25, 2013, at 4:27 PM, Jason Brennan wrote: > What I’m trying to do is have an NSTextView and add custom NSView subviews to > it, but have it so the text can layout around the subviews. You need a custom text container. See http://developer.apple.com/library/mac/#samplecode/TextLayoutDemo

Re: Laying out text in NSTextView around a subview

2013-04-29 Thread Keary Suska
On Apr 25, 2013, at 5:27 PM, Jason Brennan wrote: > What I’m trying to do is have an NSTextView and add custom NSView subviews to > it, but have it so the text can layout around the subviews. > > Right now, I can easily add a subview to the textview but of course, that > goes into the textview