Re: NSTableView inside NSTextView
Re: NSTableView inside NSTextView
- Subject: Re: NSTableView inside NSTextView
- From: Ulf Dunkel <email@hidden>
- Date: Thu, 16 Oct 2014 16:43:21 +0200
- Organization: invers Software & DSd.net
Charles,
so I should investigate on NSTextTable instead of NSTableView, right?
- - - - -
Am 16.10.2014 um 14:41 schrieb Charles Jenkins:
Ulf,
As you can see from my text view struggles, I’m no expert, but I don’t
think you’ll have a lot of success trying to stick an NSTableView into
an NSTextView. The kind of table you put inside a text view is a
different animal: really just a fancy attributed string the text system
knows how to display and manipulate as a table.
Check
out https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/TextLayout/Articles/TextTables.html
--
Charles
On Thursday, October 16, 2014 at 8:13, Ulf Dunkel wrote:
When I place a table (NSTableView) in an TextEdit document, I can easily
resize the column width of any table column using the mouse pointer,
just by dragging the column border lines to and fro.
In my app, I want to use the same tables (NSTableView), but inside
NSTextView containers in a layout document. Is it possible to get
information about whether the mouse pointer is over the column border
lines of a nested NSTableView inside an NSTextView? At the moment, the
text edit mode for my NSTextView handles clicks into the table cells of
the embedded NSTableView so I can type in some text there. But I cannot
drag the column border lines for resizing columns widths and/or row
heights.
Is this not possible?
---Ulf Dunkel
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden