• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: opening default email and browser from the code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >opening default email and browser from the code (From: Angelo Chen <email@hidden>)

  • Prev by Date: NSDocument and default file names.
  • Next by Date: Programatically placing panels inside a window
  • Previous by thread: Re: opening default email and browser from the code
  • Next by thread: NSXMLDocument and XSD substitutionGroup
  • Index(es):
    • Date
    • Thread