Mail hacking?
Mail hacking?
- Subject: Mail hacking?
- From: petite_abeille <email@hidden>
- Date: Thu, 30 Oct 2003 22:45:05 +0100
Hello,
I have a little app [1] which provides a little mail bundle [2] to turn
email addresses, dates and the subject line into hyperlinks pointing
back to the relevant view in my app [3].
Well... I should say I used to have such a bundle... because Panther's
Mail has introduce some changes...
In the new world order, the view used to display a message has changed
quiet a bit...
When Mail.app displays a message, it send a handy notification about it:
- (void) messageWillBeDisplayedInView: (NSNotification*) aNotification
This notification contains the MessageView in its userInfo.
Now, what has changed is that MessageTextView is only the lower part of
the message display. To get to the encompassing view, you need to go to
its superview: MessageTilingView. And from there you can find your way
to the header: MessageHeaderView. Once there, you have to look for
those pesky little AddressAttachment/AddressAttachmentCell to modify
them... argh!
There must be a better way than having to hack this madness over and
over again! Why is the Mail API not documented?
Grrrrrr....
PA.
[1]
http://zoe.nu/
[2]
http://zoe.nu/contents/ZOEMailBundle.jpg
[3]
http://zoe.nu/itstories/story.php?data=stories&num=27&sec=2
_______________________________________________
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.