mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 17:52:42 +00:00
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:
parent
7d8ad46759
commit
0bdd4d0ae6
3 changed files with 18 additions and 0 deletions
|
@ -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.
|
||||
|
|
|
@ -51,6 +51,11 @@
|
|||
void *_cid;
|
||||
}
|
||||
|
||||
// Method needed on Windows to handle the cursor.
|
||||
#ifdef WIN32
|
||||
+ (NSUInteger) count;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Initializing a New NSCursor Object
|
||||
*/
|
||||
|
|
|
@ -70,6 +70,13 @@ static NSMutableDictionary *cursorDict = nil;
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef WIN32
|
||||
+ (NSUInteger) count
|
||||
{
|
||||
return [gnustep_gui_cursor_stack count];
|
||||
}
|
||||
#endif
|
||||
|
||||
- (void *) _cid
|
||||
{
|
||||
return _cid;
|
||||
|
|
Loading…
Reference in a new issue