• 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: NSControl in NSTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >NSControl in NSTextView (From: "Falko A." <email@hidden>)

  • Prev by Date: NSControl in NSTextView
  • Next by Date: Re: NSControl in NSTextView
  • Previous by thread: NSControl in NSTextView
  • Next by thread: Re: NSControl in NSTextView
  • Index(es):
    • Date
    • Thread