Re: NSTextField containing Button?
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.