Here's a sample of our code.
Thanks a lot for your time and knowledge
Oshrat
NewCursor(const resContainerRef, const short cursorID, const WTPoint2s hotSpotPoint)
{
WTCursorHandle retVal = 0;
NSCursor* crsr = 0;
wvFM::WCStPath imgPath;
WTResType resType = "Crsr";
wvRM::GetPathToActualFile (resContainerRef, resType, cursorID, imgPath);
NSString* imgPathAsNSString = 0;
imgPathAsNSString = [NSString stringWithFormat:@"%s", imgPath.GetNativePathString().c_str()];
NSImage * img = [[NSImage alloc] :imgPathAsNSString];
crsr = [[NSCursor alloc]initWithImage:img hotSpot:NSMakePoint(hotSpotPoint.m_x,hotSpotPoint.m_y)];
_______________________________________________
Cocoa-dev mailing list (Coco...@lists.apple.com)
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:
https://lists.apple.com/mailman/options/cocoa-dev/cocoa-dev-garchive-98506%40googlegroups.com
This email sent to cocoa-dev-ga...@googlegroups.com
http://en.wikipedia.org/wiki/ICO_(file_format)
Part of the ICONDIRENTRY structure is the hotspot information. Should
be pretty easy to write a basic parser.
> https://lists.apple.com/mailman/options/cocoa-dev/stephen.butler%40gmail.com
>
> This email sent to stephen...@gmail.com