From 8c8dd51136e5e2c1fa8e99c550766b9e501ddeb1 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Wed, 10 Sep 2008 21:40:41 -0700 Subject: [PATCH] one more cocoa type bug --- basis/cocoa/messages/messages.factor | 22 ++++++++++++++-------- basis/ui/cocoa/views/views.factor | 2 +- 2 files changed, 15 insertions(+), 9 deletions(-) diff --git a/basis/cocoa/messages/messages.factor b/basis/cocoa/messages/messages.factor index 623bfc961a..1b804c3cf1 100755 --- a/basis/cocoa/messages/messages.factor +++ b/basis/cocoa/messages/messages.factor @@ -144,16 +144,22 @@ objc>alien-types get [ swap ] assoc-map ! A hack... "ptrdiff_t" heap-size { { 4 [ H{ - { "NSPoint" "{_NSPoint=ff}" } - { "NSRect" "{_NSRect={_NSPoint=ff}{_NSSize=ff}}" } - { "NSSize" "{_NSSize=ff}" } - { "NSRange" "{_NSRange=II}" } + { "NSPoint" "{_NSPoint=ff}" } + { "NSRect" "{_NSRect={_NSPoint=ff}{_NSSize=ff}}" } + { "NSSize" "{_NSSize=ff}" } + { "NSRange" "{_NSRange=II}" } + { "NSInteger" "i" } + { "NSUInteger" "I" } + { "CGFloat" "f" } } ] } { 8 [ H{ - { "NSPoint" "{CGPoint=dd}" } - { "NSRect" "{CGRect={CGPoint=dd}{CGSize=dd}}" } - { "NSSize" "{CGSize=dd}" } - { "NSRange" "{_NSRange=QQ}" } + { "NSPoint" "{CGPoint=dd}" } + { "NSRect" "{CGRect={CGPoint=dd}{CGSize=dd}}" } + { "NSSize" "{CGSize=dd}" } + { "NSRange" "{_NSRange=QQ}" } + { "NSInteger" "q" } + { "NSUInteger" "Q" } + { "CGFloat" "d" } } ] } } case assoc-union alien>objc-types set-global diff --git a/basis/ui/cocoa/views/views.factor b/basis/ui/cocoa/views/views.factor index 772770133d..a13d8f86df 100755 --- a/basis/ui/cocoa/views/views.factor +++ b/basis/ui/cocoa/views/views.factor @@ -329,7 +329,7 @@ CLASS: { [ 3drop 0 0 0 0 ] } -{ "conversationIdentifier" "long" { "id" "SEL" } +{ "conversationIdentifier" "NSInteger" { "id" "SEL" } [ drop alien-address ] }