[Adium-devl] AIContentObject question
Peter Hosey
boredzo at gmail.com
Sun Aug 12 16:28:45 UTC 2007
On Aug 12, 2007, at 07:52:53, Evan Schoenberg wrote:
> The designated initializer is +[AIContentObject
> messageInChat:withSource:destination:date:message:autoreply:] / -
> [AIContentObject
> initWithChat:withSource:destination:date:message:autoreply:]. All
> AIContentObjects should therefore be associated with a chat.
>
> Of course, if there's a reason to allow otherwise, we could...
> having a nil chat and assigning it later through a -
> [AIContentObject setChat:] method which does not exist at present
> wouldn't hurt anything.
I'm asking about the dictionary definition of a content object, which
I would be writing down in the documentation.
Perhaps somebody could currently get away with setting up a content
object with no chat, but is this explicitly allowed, or something
that we may break if we later feel like it?
Also, if it's the latter, we should probably break it now, by adding
assertions to -init… and -setChat: (in addition to closely examining
whether we need a -setChat: at all) so that it cannot be nil.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://adium.im/pipermail/devel_adium.im/attachments/20070812/852f635a/attachment.sig>
More information about the devel
mailing list