objc:iskind?

(objc:iskind? class obj)


Description:

predicate check to see if objc is of type class


Arguments:

            obj -- a scheme object

          class -- an objc class represented as a string "NSString"


Returns: boolean


Related: objc:call objc:make is_objc? 


Examples:

(define num (objc:call "NSNumber" "numberWithFloat:" 0.5))

(define str (objc:call "NSString" "stringWithString:" "hello"))

(objc:iskind? "NSNumber" num)

(objc:iskind? "NSNumber" str)

(objc:iskind? "NSNumber" (objc:nsstring->string num))



Back to index