Re: Implementing an iChat-like view
Re: Implementing an iChat-like view
- Subject: Re: Implementing an iChat-like view
- From: Fritz Anderson <email@hidden>
- Date: Fri, 23 Apr 2004 12:52:51 -0500
(3) I'd start with the Cocoa text system, and add a custom
NSLayoutManager or NSTextView that drew the bubbles as paragraph
backgrounds. If you have ADC access (connect.apple.com) look under the
WWDC 2003 sample files for the session 427 demos, particularly
"BubbleText." It gets you much of the way there.
For the controls, I'd hope that NSTextAttachmentCells could be made to
work.
-- F
On 23 Apr 2004, at 11:21 AM, Reni Puls wrote:
how would you implement a chat-style view like the one in iChat?
Would you do this...
(1) with a single NSView or NSControl subclass (and which of the two)?
For example, just draw whatever is necessary in drawRect:?
(2) with an NSView and custom NSCells that draw the "chat bubbles"?
(3) with something completely different? I don't want to use WebKit
for this, because I'd like my chat bubbles to have certain
user-clickable controls, which would probably be ugly to implement
with a WebView.
(I am not really implementing a chat application, but this seems to be
a good and simple example. The important thing is that there can be
lots of these chat bubbles, so it would have to be fast.)
--
Fritz Anderson
Consulting Programmer
http://resume.manoverboard.org/
_______________________________________________
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.