Re: Mail - check email
Re: Mail - check email
- Subject: Re: Mail - check email
- From: Jeff LaMarche <email@hidden>
- Date: Fri, 14 Mar 2008 10:25:14 -0400
You may be confusing two separate things.
Mail plug-ins are not applications, and they have to use a private,
undocumented API. It is not something encouraged by Apple, nor is it a
great choice for a Cocoa program. If you're serious, there are several
plug-ins with the source code available you can study, like GPGMail
http://www.sente.ch/software/GPGMail/English.lproj/GPGMail.html
Now, if your application just need to communicate with Mail, then you
should read up some of the documentation about interapplication
communications at the Mac Dev Center. There are several options,
including NSPipe and the Scripting Bridge, the latter most likely
being a better choice for interacting with Mail.
http://developer.apple.com/documentation/Cocoa/Conceptual/ScriptingBridgeConcepts/index.html
On Mar 14, 2008, at 9:49 AM, Cocoa wrote:
I am new to programming. I studied basic C language, and recently I
read the Objective-C Tutorial and Cocoa Fundamental Guide , but i am
still confused with how do I connect my the codes with other
applications on the mac such as Mail.app.
I am planing to write a plug-in for Mail.app. Are there anyway to do
this. I have been reading around the stuffs on the net like
Application Kit, Foundation.
I think I need to use NSApplication, and NSNotification. Am I right?
It's a simple plug-in, it only check the Mail if it has new mails,
if it has, return a message and display at the center of the
monitor, if it doesn't, just do nothings
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden