Author: espectador
Date: Thu Mar 12 06:34:08 2015
New Revision: 38403
URL: http://svn.gna.org/viewcvs/gnustep?rev=38403&view=rev
Log:
Add class method +count in NSCursor to handle cursors on Windows.
Modified:
libs/gui/trunk/ChangeLog
libs/gui/trunk/Headers/AppKit/NSCursor.h
libs/gui/trunk/Source/NSCursor.m
Modified: libs/gui/trunk/ChangeLog
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/ChangeLog?rev=38403&r1=38402&r2=38403&view=diff
==============================================================================
--- libs/gui/trunk/ChangeLog (original)
+++ libs/gui/trunk/ChangeLog Thu Mar 12 06:34:08 2015
@@ -1,3 +1,9 @@
+2015-03-11 Germán Arias <[email protected]>
+
+ * Headers/AppKit/NSCursor.h:
+ * Source/NSCursor.m: Add class method +count, specifically to handle
+ cursors on MS Windows.
+
2015-03-10 Fred Kiefer <[email protected]>
* Source/NSImageView.m (-initWithCoder:): Set default for
AllowsCutCopyPaste.
Modified: libs/gui/trunk/Headers/AppKit/NSCursor.h
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Headers/AppKit/NSCursor.h?rev=38403&r1=38402&r2=38403&view=diff
==============================================================================
--- libs/gui/trunk/Headers/AppKit/NSCursor.h (original)
+++ libs/gui/trunk/Headers/AppKit/NSCursor.h Thu Mar 12 06:34:08 2015
@@ -50,6 +50,11 @@
} _cursor_flags;
void *_cid;
}
+
+// Method needed on Windows to handle the cursor.
+#ifdef WIN32
++ (NSUInteger) count;
+#endif
/*
* Initializing a New NSCursor Object
Modified: libs/gui/trunk/Source/NSCursor.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSCursor.m?rev=38403&r1=38402&r2=38403&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSCursor.m (original)
+++ libs/gui/trunk/Source/NSCursor.m Thu Mar 12 06:34:08 2015
@@ -69,6 +69,13 @@
[[self arrowCursor] set];
}
}
+
+#ifdef WIN32
++ (NSUInteger) count
+{
+ return [gnustep_gui_cursor_stack count];
+}
+#endif
- (void *) _cid
{
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs