Add class method +count in NSCursor to handle cursors on Windows.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38403 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2015-03-12 05:34:08 +00:00
parent 7d8ad46759
commit 0bdd4d0ae6
3 changed files with 18 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2015-03-11 Germán Arias <germanandre@gmx.es>
* Headers/AppKit/NSCursor.h:
* Source/NSCursor.m: Add class method +count, specifically to handle
cursors on MS Windows.
2015-03-10 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSImageView.m (-initWithCoder:): Set default for AllowsCutCopyPaste.

View file

@ -51,6 +51,11 @@
void *_cid;
}
// Method needed on Windows to handle the cursor.
#ifdef WIN32
+ (NSUInteger) count;
#endif
/*
* Initializing a New NSCursor Object
*/

View file

@ -70,6 +70,13 @@ static NSMutableDictionary *cursorDict = nil;
}
}
#ifdef WIN32
+ (NSUInteger) count
{
return [gnustep_gui_cursor_stack count];
}
#endif
- (void *) _cid
{
return _cid;