Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Boxed Class

sohocoke edited this page · 2 revisions

Boxed classes wrap struct types defined in Cocoa, such as NSPoint, NSRect etc. Boxed classes also provide information about the wrapped struct.

Methods in Boxed Class


Returns a structure type information.

  • type -> String
    • [RETURN]
      • Returns a structure type information.
>> framework 'Cocoa'
>> NSRect.type
=> "{CGRect={CGPoint=dd}{CGSize=dd}}"


Returns whether structure is opaque.

  • opaque? -> bool
    • [RETURN]
      • Returns a true if structure is opaque. Otherwise, returns a false.
>> framework 'Cocoa'
>> NSRect.opaque?
=> false
>> NSModalSession.opaque?
=> true
Something went wrong with that request. Please try again.