• 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: NSTextField containing Button?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSTextField containing Button?


  • Subject: Re: NSTextField containing Button?
  • From: Nicko van Someren <email@hidden>
  • Date: Fri, 2 Jan 2004 01:07:52 +0000

On Jan 1, 2004, at 4:19 PM, Tim wrote:

Does anyone have any idea about how mail goes about placing the blue button likes objects within the textfield (?) in the To, cc and bcc address bars. I would like to replicate similar behaviour in one of my own programs and have no idea where to start.

At a guess it works using NSTextAttachment [1] objects in the text stream and the NSTextAttachemntCell protocol to display them. The NSTextView delegate gets a textView:clickedOnCell:inRect: message when the user clicks on text attachment cell.

Nicko

[1] file:///Developer/Documentation/Cocoa/Conceptual/TextAttachments/ index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
References: 
 >NSTextField containing Button? (From: Tim <email@hidden>)
 >Re: NSTextField containing Button? (From: Brian Smith <email@hidden>)

  • Prev by Date: Re: Encryption
  • Next by Date: Re: Localization question
  • Previous by thread: Re: NSTextField containing Button?
  • Next by thread: Re: NSTextField containing Button?
  • Index(es):
    • Date
    • Thread