mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-02-23 11:41:05 +00:00
Add .gitignore.
Fix a few compiler warnings.
This commit is contained in:
parent
fa00b63ced
commit
d587e3f195
4 changed files with 11 additions and 2 deletions
7
.gitignore
vendored
Normal file
7
.gitignore
vendored
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
*.app
|
||||||
|
*.debug
|
||||||
|
*.profile
|
||||||
|
*.palette
|
||||||
|
*.plugin
|
||||||
|
obj
|
||||||
|
InterfaceBuilder
|
|
@ -243,7 +243,7 @@
|
||||||
#define MAX(A,B) ((A)>(B)?(A):(B))
|
#define MAX(A,B) ((A)>(B)?(A):(B))
|
||||||
#define MIN(A,B) ((A)<(B)?(A):(B))
|
#define MIN(A,B) ((A)<(B)?(A):(B))
|
||||||
|
|
||||||
int _sortViews(id view1, id view2, void *context)
|
NSComparisonResult _sortViews(id view1, id view2, void *context)
|
||||||
{
|
{
|
||||||
BOOL isVertical = *((BOOL *)context);
|
BOOL isVertical = *((BOOL *)context);
|
||||||
NSInteger order = NSOrderedSame;
|
NSInteger order = NSOrderedSame;
|
||||||
|
@ -279,7 +279,7 @@ int _sortViews(id view1, id view2, void *context)
|
||||||
{
|
{
|
||||||
NSMutableArray *array = [subviews mutableCopy];
|
NSMutableArray *array = [subviews mutableCopy];
|
||||||
NSArray *result = [array sortedArrayUsingFunction: _sortViews
|
NSArray *result = [array sortedArrayUsingFunction: _sortViews
|
||||||
context: &isVertical];
|
context: &isVertical];
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -44,6 +44,7 @@
|
||||||
#include <AppKit/NSMatrix.h>
|
#include <AppKit/NSMatrix.h>
|
||||||
#include <AppKit/NSNibLoading.h>
|
#include <AppKit/NSNibLoading.h>
|
||||||
#include <AppKit/NSFormCell.h>
|
#include <AppKit/NSFormCell.h>
|
||||||
|
#include <AppKit/NSStepper.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
IBObjectAdditions category
|
IBObjectAdditions category
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#include <AppKit/NSForm.h>
|
#include <AppKit/NSForm.h>
|
||||||
#include <AppKit/NSMatrix.h>
|
#include <AppKit/NSMatrix.h>
|
||||||
#include <AppKit/NSNibLoading.h>
|
#include <AppKit/NSNibLoading.h>
|
||||||
|
#include <AppKit/NSStepper.h>
|
||||||
|
|
||||||
|
|
||||||
@implementation NSMatrix (IBObjectAdditions)
|
@implementation NSMatrix (IBObjectAdditions)
|
||||||
|
|
Loading…
Reference in a new issue