• 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: pointingHandCursor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pointingHandCursor


  • Subject: Re: pointingHandCursor
  • From: Stephane Sudre <email@hidden>
  • Date: Wed, 3 Dec 2003 12:29:18 +0100

I would suggest having a look at the Sample Code section on the Apple Web site:

http://developer.apple.com/samplecode/Sample_Code/Cocoa.htm

There is a sample code named: "TextLinks" which is doing what you're trying to achieve. It's working really well.

On Wednesday, December 3, 2003, at 10:44 AM, Ruben Smits wrote:

Hi all,

I've got an NSTextField. This field is filled with an NSAttributedString that contains a link to a website.
When the mouse moves over this field I want the pointingHandCursor to be shown.

My code in the WindowController:
[[myTextField addCursorRect:[myTextField frame] cursor:[NSCursor pointingHandCursor]];
[[self window]enableCursorRects];

Why doesn't this work? These statements have no effect at all, cursur is IBeamCursor over the NSTextField.

Any ideas?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: pointingHandCursor (solved)
      • From: Ruben Smits <email@hidden>
References: 
 >pointingHandCursor (From: Ruben Smits <email@hidden>)

  • Prev by Date: pointingHandCursor
  • Next by Date: Re: ASKNibConnector class not found
  • Previous by thread: pointingHandCursor
  • Next by thread: Re: pointingHandCursor (solved)
  • Index(es):
    • Date
    • Thread