diff --git a/ChangeLog b/ChangeLog index 7225e85f9..828dd7bae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-11-29 Richard Frith-Macdonald + + * Source/NSCursor.m: ([-initWithImage:]) changed to use a hot point + at 0,0 rather than 0,15 for MacOS-X compatibility ... the coordinate + system of a cursor is flipped according to the MacOS-X docs. + 2007-11-27 Fred Kiefer * Source/NSApplication.m (-replyToApplicationShouldTerminate:): diff --git a/Source/NSCursor.m b/Source/NSCursor.m index dd2857e58..551d561be 100644 --- a/Source/NSCursor.m +++ b/Source/NSCursor.m @@ -309,21 +309,23 @@ NSCursor *getStandardCursor(NSString *name, int style) */ - (id) init { - return [self initWithImage: nil hotSpot: NSMakePoint(0,15)]; + return [self initWithImage: nil hotSpot: NSMakePoint(0,0)]; } /**

Initializes and returns a new NSCursor with a NSImage newImage - and a hot spot point with x=0 and y=15.

+ and a hot spot point with x=0 and y=0 (top left corner).

See Also: -initWithImage:hotSpot:

*/ - (id) initWithImage: (NSImage *)newImage { return [self initWithImage: newImage - hotSpot: NSMakePoint(0,15)]; + hotSpot: NSZeroPoint]; } /**

Initializes and returns a new NSCursor with a NSImage newImage and the hot spot to hotSpot.

+

NB. The coordinate system of an NSCursor is flipped, so a hotSpot at + 0,0 is in the top left corner of the cursor.

See Also: -initWithImage: -setImage:

*/ - (id) initWithImage: (NSImage *)newImage hotSpot: (NSPoint)hotSpot @@ -360,7 +362,9 @@ backgroundColorHint:(NSColor *)bg [super dealloc]; } -/**

Returns the hot spot point of the NSCursor

+/**

Returns the hot spot point of the NSCursor. This is in the + * cursor's coordinate system which is a flipped on (origin at the + * top left of the cursor).

*/ - (NSPoint) hotSpot {