You can get TextEdit's source code and see how they did it: 
https://developer.apple.com/library/mac/samplecode/textedit/Introduction/Intro.html
________________________________________
From: [email protected] 
[[email protected]] on behalf of Ulf Dunkel 
[[email protected]]
Sent: Thursday, October 16, 2014 5:13 AM
To: Cocoa Development
Subject: NSTableView inside NSTextView

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 protected])

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:
https://urldefense.proofpoint.com/v1/url?u=https://lists.apple.com/mailman/options/cocoa-dev/lrucker%2540vmware.com&k=oIvRg1%2BdGAgOoM1BIlLLqw%3D%3D%0A&r=yJFJhaNnTZDfFSSz1U9TSNMmxGyib3KjZGuKfIhHLxA%3D%0A&m=KfDLAYqS6xvKPmAHMbAmd3a%2Fik3MjslPhFPgIIDqEpE%3D%0A&s=aff0e192cc830ce1c7f6c76fbcf8bde912fe54d261500fcab425d44b2aeb5286

This email sent to [email protected]
_______________________________________________

Cocoa-dev mailing list ([email protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to