• 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: Implementing an iChat-like view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Implementing an iChat-like view


  • Subject: Re: Implementing an iChat-like view
  • From: Francisco Tolmasky <email@hidden>
  • Date: Fri, 23 Apr 2004 12:17:32 -0700

The thing you have to learn with Apple is, they love hacking the ol' NSTextView. This is the way to go. Subclass NSTextView, set appropriate paragraph spacing or whatever, as well as switching off between left-aligned and right-aligned, and then draw bubbles in for the effect. That should be all there is to it.

You can also do iChat ctrl+click show package contents to get a closer look at what it is they're doing.

On Apr 23, 2004, at 9:56 AM, email@hidden wrote:

Message: 13
To: email@hidden
From: =?ISO-8859-1?Q?Ren=E9_Puls?= <email@hidden>
Subject: Implementing an iChat-like view
Date: Fri, 23 Apr 2004 18:21:41 +0200

Hello,

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.)

Kind regards,
Reni Puls

--__--__--

Message: 14
Cc: Cocoa <email@hidden>, Adam <email@hidden>, Marco
Scheurer <email@hidden>, Kay Roepke <email@hidden>
From: Clark Cox <email@hidden>
Subject: Re: [OT] Algebra (was: Re: Is Concatenation that complex?)
Date: Fri, 23 Apr 2004 12:32:45 -0400
To: David Blanton <email@hidden>

Francisco Tolmasky
email@hidden
http://www-scf.usc.edu/~tolmasky/
_______________________________________________
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.


  • Prev by Date: Re: Interpretation of static types in Cocoa [Was: Immutable discomfort]
  • Next by Date: NSArrayController manage array in MyObject
  • Previous by thread: Re: Implementing an iChat-like view
  • Next by thread: Get the true time and date
  • Index(es):
    • Date
    • Thread