mirror of
https://github.com/gnustep/apps-gorm.git
synced 2025-04-23 06:20:47 +00:00
Add types for method signature
This commit is contained in:
parent
e72d3eb749
commit
97e7d29413
1 changed files with 25 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
|||
|
||||
#import "GormXIBModelGenerator.h"
|
||||
|
||||
static NSDictionary *_signatures = nil;
|
||||
static NSArray *_skipClass = nil;
|
||||
static NSArray *_skipCollectionForKey = nil;
|
||||
static NSArray *_singletonObjects = nil;
|
||||
|
@ -242,6 +243,30 @@ static NSUInteger _count = INT_MAX;
|
|||
{
|
||||
if (self == [GormXIBModelGenerator class])
|
||||
{
|
||||
_signatures =
|
||||
[[NSDictionary alloc] initWithObjectsAndKeys:
|
||||
@"char", @"c",
|
||||
@"NSUInteger", @"i", // this might be wrong.. maybe it should be NSInteger or just int
|
||||
@"short", @"s",
|
||||
@"long", @"l",
|
||||
@"long long", @"q",
|
||||
@"BOOL", @"C", // unsigned char
|
||||
@"NSUInteger", @"I",
|
||||
@"unsigned short",@"S",
|
||||
@"unsigned long", @"L",
|
||||
@"long long", @"Q",
|
||||
@"float", @"f",
|
||||
@"CGFloat", @"d",
|
||||
@"bool", @"B",
|
||||
@"void", @"v",
|
||||
@"char*", @"*",
|
||||
@"id", @"@",
|
||||
@"Class", @"#",
|
||||
@"SEL", @":",
|
||||
@"{_NSRect={_NSPoint=dd}{_NSSize=dd}}", @"NSRect",
|
||||
@"{_NSSize=dd}", @"NSSize",
|
||||
@"{_NSPoint=dd}", @"NSPoint",
|
||||
nil];
|
||||
_skipClass =
|
||||
[[NSArray alloc] initWithObjects:
|
||||
@"NSBrowserCell",
|
||||
|
|
Loading…
Reference in a new issue