• 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: How to Support in-line attachments in NStextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to Support in-line attachments in NStextView


  • Subject: Re: How to Support in-line attachments in NStextView
  • From: "email@hidden" <email@hidden>
  • Date: Thu, 15 Sep 2011 09:15:12 +0100

On 15 Sep 2011, at 06:53, Sandeep Mohan Bhandarkar wrote:

> Hi All,
>
> I have a requirement where in I need to create a NSTextView that can support in-line attachments. the feature that I am looking for can be summed up in the following points
>
> 1) Ability to drag and drop files images etc onto the NSTextView.
> 2) Displaying one placeholder image for any file that is dragged and dropped (except strings)
> 3) No text editing should be allowed in the area where the Placeholder image for attachments is present.
>
> I know i am asking for lot here but can some one please provide any pointers to any sample code or any resource as to how we can do this
>
> Thanks in Advance,
> Sandeep.
>
I haven't used them but NSTextAttachment and the NSTextAttachmentCell protocol look promising.

http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/ApplicationKit/Classes/NSTextAttachment_Class/Reference/Reference.html#//apple_ref/doc/uid/20000385

Regards

Jonathan Mitchell
Mugginsoft LLP

================================================
KosmicTask - the Integrated Scripting Environment for OS X.
http://www.mugginsoft.com/KosmicTask
================================================_______________________________________________

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

  • Follow-Ups:
    • Re: How to Support in-line attachments in NStextView
      • From: Martin Hewitson <email@hidden>
References: 
 >How to Support in-line attachments in NStextView (From: Sandeep Mohan Bhandarkar <email@hidden>)

  • Prev by Date: How to Support in-line attachments in NStextView
  • Next by Date: sender is nil in action method from NSPopupButtonCell in an NSTextFieldCell
  • Previous by thread: How to Support in-line attachments in NStextView
  • Next by thread: Re: How to Support in-line attachments in NStextView
  • Index(es):
    • Date
    • Thread