FROM : Peter Zegelin
DATE : Fri May 02 06:05:53 2008
Thanks - I have got it to work in both cases except where I add a
subject to the mailto:
This works: NSString *applicationURL = @"mailto:<email_removed>
";
but this doesn't: NSString *applicationURL = @"mailto:<email_removed>?subject=AlphaDraw
- Require Registration Help ";
into: [[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:applicationURL]];
If I shorten the Subject to just subject=AlphaDraw it works but it
looks like any spaces are causing the method to fail.
Any suggestions what may be wrong?
thanks again,
Peter
On 02/05/2008, at 1:16 PM, Michael Vannorsdel wrote:
> Checkout NSWorkspace's openURL:. NSWorkspace is there to help your
> program when dealing with external programs and functionality.
>
>
>
> On May 1, 2008, at 9:02 PM, Peter Zegelin wrote:
>
>> I would like my application to have a 'Visit Website..' menu but I
>> can't figure out how to get the users default web browser to open
>> and automatically send it to my website.
>>
>> I would also like to be able to automatically fire up their email
>> client and fill in the address and subject (for bug reporting), if
>> this is possible.
>>
>> Any suggestions and/or examples would be greatly appreciated.
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
DATE : Fri May 02 06:05:53 2008
Thanks - I have got it to work in both cases except where I add a
subject to the mailto:
This works: NSString *applicationURL = @"mailto:<email_removed>
";
but this doesn't: NSString *applicationURL = @"mailto:<email_removed>?subject=AlphaDraw
- Require Registration Help ";
into: [[NSWorkspace sharedWorkspace] openURL:[NSURL
URLWithString:applicationURL]];
If I shorten the Subject to just subject=AlphaDraw it works but it
looks like any spaces are causing the method to fail.
Any suggestions what may be wrong?
thanks again,
Peter
On 02/05/2008, at 1:16 PM, Michael Vannorsdel wrote:
> Checkout NSWorkspace's openURL:. NSWorkspace is there to help your
> program when dealing with external programs and functionality.
>
>
>
> On May 1, 2008, at 9:02 PM, Peter Zegelin wrote:
>
>> I would like my application to have a 'Visit Website..' menu but I
>> can't figure out how to get the users default web browser to open
>> and automatically send it to my website.
>>
>> I would also like to be able to automatically fire up their email
>> client and fill in the address and subject (for bug reporting), if
>> this is possible.
>>
>> Any suggestions and/or examples would be greatly appreciated.
>
> _______________________________________________
>
> Cocoa-dev mailing list (<email_removed>)
>
> 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:
> http://lists.apple.com/mailman/options/cocoa-dev/<email_removed>
>
> This email sent to <email_removed>
| Related mails | Author | Date |
|---|---|---|
| Peter Zegelin | May 2, 05:02 | |
| Michael Vannorsdel | May 2, 05:16 | |
| Peter Zegelin | May 2, 06:05 | |
| Andrew Farmer | May 2, 06:18 | |
| Jens Alfke | May 2, 06:19 | |
| Michael Vannorsdel | May 2, 06:19 | |
| Peter Zegelin | May 2, 06:24 |






Cocoa mail archive

