• 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: "David Piasecki" <email@hidden>
  • Date: Wed, 12 May 2004 09:06:11 -0700

That worked out great. Thanks!

David


On May 11, 2004, at 9:42 PM, John Randolph wrote:


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.


References: 
 >cursor image (From: "David Piasecki" <email@hidden>)
 >Re: cursor image (From: John Randolph <email@hidden>)

  • Prev by Date: Re: CamelBones question
  • Next by Date: Flash animation
  • Previous by thread: Re: cursor image
  • Next by thread: What in the world?
  • Index(es):
    • Date
    • Thread