Re: E-mail
Re: E-mail
- Subject: Re: E-mail
- From: "John C. Randolph" <email@hidden>
- Date: Mon, 13 Aug 2001 04:49:42 -0700
On Monday, August 13, 2001, at 04:29 AM, Stiphane Sudre wrote:
On lundi, ao{t 13, 2001, at 07:24 AM, Angela Brett wrote:
Hi,
I'm very new to Cocoa programming, having created only one small and
slightly useful application using Objective-C, so forgive me if I ask
a lot of rather elementary questions. I can usually find what I want
by searching the documentation, but there is one thing I haven't been
able to find out about.
I would like my program to be able to compose an email in the user's
default email client (as specified in the internet preferences). I've
seen quite a few applications do that, so I'm presuming there's quite
an easy way to do it, but I can't find any direct reference to it in
the documentation. I guess it would have something to do with NSURL
and/or NSUserDefaults, but I'm not experienced enough yet to figure
out how to do it. Any help would be greatly appreciated.
[[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:@"mailto:email@hidden"]];
Woah! I didn't know you could do that. On Mac OSX, I've used the
message framework. Before that, on NeXTSTEP, I used the mail.app API.
-jcr
Support your right to protest a criminal nut-cult.
http://freehenson.da.ru/
References: | |
| >Re: E-mail (From: Stéphane Sudre <email@hidden>) |