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

Re: cursor image


  • Subject: Re: cursor image
  • From: John Randolph <email@hidden>
  • Date: Tue, 11 May 2004 21:42:40 -0700

On May 11, 2004, at 4:45 PM, David Piasecki wrote:

What's the best way to make the cursor a different image?

NSImage *myImage = [NSImage imageNamed:@"SomeImageInMyProject"];

NSCursor *myCursor = [[NSCursor alloc] initWithImage:myImage];
[myCursor set];

-jcr

John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
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: cursor image
      • From: "David Piasecki" <email@hidden>
References: 
 >cursor image (From: "David Piasecki" <email@hidden>)

  • Prev by Date: WODistributedNotificationIdentifier: 3?
  • Next by Date: [ANN] Cocoa with Xgrid article
  • Previous by thread: Re: cursor image
  • Next by thread: Re: cursor image
  • Index(es):
    • Date
    • Thread