mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-06-01 21:51:55 +00:00
Add MacOSX 10.4 methods and constants to NSEvent. Resort event types to
be binary compatible to MacOSX. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25377 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9fc6122ab8
commit
8b5ef317f7
7 changed files with 627 additions and 353 deletions
|
@ -990,7 +990,10 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
|
|||
}
|
||||
|
||||
// The number of remembered recent documents
|
||||
#define MAX_DOCS 5
|
||||
- (unsigned int) maximumRecentDocumentCount
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
|
||||
- (void) noteNewRecentDocument: (NSDocument *)aDocument
|
||||
{
|
||||
|
@ -1011,7 +1014,7 @@ static NSDictionary *TypeInfoForHumanReadableName (NSArray *types, NSString *typ
|
|||
// Always keep the current object at the end of the list
|
||||
[_recent_documents removeObjectAtIndex: index];
|
||||
}
|
||||
else if ([_recent_documents count] > MAX_DOCS)
|
||||
else if ([_recent_documents count] > [self maximumRecentDocumentCount])
|
||||
{
|
||||
[_recent_documents removeObjectAtIndex: 0];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue