Re: opening default email and browser from the code
Re: opening default email and browser from the code
- Subject: Re: opening default email and browser from the code
- From: "Mattias Arrelid" <email@hidden>
- Date: Tue, 17 Jun 2008 09:53:56 +0200
2008/6/17 Angelo Chen <email@hidden>:
> Hi,
>
> I got two questions:
>
> 1) I have an email address in the code, I'd like to open default mailing program from the code with the email address as the recipient.
>
>
> 2) I have a NSImageView, when mouse move over it, the cursor should be changed to a hand, and when it is clicked, it will open a URL in the default browser.
As for the cursor being changed, take a look at the NSTrackingArea
class [1]. It requires Leopard but is indeed much better than the
older functionality provided by tracking rect tag (NSTrackingRectTag).
[1] http://developer.apple.com/documentation/Cocoa/Reference/NSTrackingArea_class/Reference/Reference.html
Regards
Mattias
_______________________________________________
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