Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

BOOL return values

Help
bthayward
2005-11-07
2013-04-25
  • bthayward
    bthayward
    2005-11-07

    Is it possible to return an Objective C BOOL datatype from a camelbones perl subrutine?

    The datatype section of the documentation lists a bunch of datatypes, but none of which are BOOL.

    To give a little more detail, I am trying to implement the tableView:shouldEditTableColumn:row: method of the NSTableViews class.  The method returns a BOOL type.

     
    • Sherm Pendley
      Sherm Pendley
      2005-11-08

      Objective-C's BOOL (unlike C++'s bool) is just a typedef - it's really a char. So you can declare BOOLs as 'c'. (I'll make a note of that in the docs.)