Re: NSControl in NSTextView
Re: NSControl in NSTextView
- Subject: Re: NSControl in NSTextView
- From: Douglas Davidson <email@hidden>
- Date: Thu, 7 Sep 2006 11:27:31 -0700
On Sep 7, 2006, at 11:05 AM, Falko A. wrote:
is it possible to insert a NSControl into a NSTextView similar as
it's done with normal images?
If not, are there any examples on how to achieve a similar effect?
I'd like to place a button in a text view to replace tags in the
text. The user could then
click the button to open an editor for that tag, rather than
editing it directly.
Maybe there are better ways of doing that?
Probably the simplest thing here would be to use a custom
NSTextAttachmentCell and use the click-handling facilities that
NSTextAttachmentCell provides. You might want to think about what
should happen when your text is copied and pasted elsewhere.
Douglas Davidson
_______________________________________________
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