Hi

Here's the beginning of a .jobs file I used recently. Note the Obj-C
code is in a framework. Here's the custom .h file I added to the wrapper
project. I had to do this for some reason...

/* DynaReporterJava.h created by Administrator on Sun 06-Dec-1998 */

#import <WebObjects/WebObjects.h>

#import <DRGrouping/DRGroup.h>
#import <DRGrouping/DRValue.h>
#import <DRGrouping/DRValueGroup.h>
#import <DRGrouping/DRRecord.h>
#import <DRGrouping/DRRecordGroup.h>
#import <DRGrouping/DRCriteria.h>
#import <DRGrouping/DRReportModel.h>
#import <DRGrouping/DRAttribute.h>
#import <DRGrouping/DRAttributeGroup.h>
#import <DRGrouping/DRMasterCriteria.h>
#import <DRGrouping/DRSubMasterCriteria.h>
#import <DRGrouping/DRAttributeGroup.h>



-----
My .jobs file...



# This .jobs file was automatically generated for your bridging
convenience.
# Do not edit this file by hand, use WrapIt or any .jobs creation tool!

# Pseudo-comment giving the version of WrapIt writing this file.

#> version 36

# Source of the Objective-C interfaces specifications.

header DynaReporterJava.h

# Specifications files that are to be imported.

#import ObjCJava.jobs
import FoundationJava.jobs
#import EOControlJava.jobs

stub-import DynaReporterJava.h

# Default mappings of Objective-C selectors to overloaded Java methods.

selector
    +possibleValues: = possibleValues
    +withKeyPath:format:label:total:list:userInfo: = withKeyPath
    +withKeyPath:format:label:total:userInfo: = withKeyPath
    +withRecord:attribute: = withRecord
    -attributeList = attributeArray
    -attributeList: = attributeArrayFor
    -decideIsPreset = decideIsPreset
    -decideIsPreset: = decideIsPreset
    -group = group
    -group:by: = group
    -group:by:into: = group
    -possibleValues = possibleValues
    -withRecord:attribute: = withRecord
    -isGroup = isAGroup
    +modelDictWithPListString: = modelWithPListString

# Exposed class interfaces.

class DRAttribute = com.dln.DRAttribute
    -attributeGroup
    -attributes
    -flatAttributes
    -flatAttributesTotal
    -flatAttributesWithDepth:dictionary:
    -format
    -isPlaceHolderTotal
    -keyPath
    -label
    -resetDefaults
    -setAttributeGroup:

> Eyal Eithcowich wrote:
> 
> Hi all,
> 
> I'm wrapping an obj-c framework using the JavaWrapper application and
> WrappIt to create the jobs file. After fixing the name space and
> importing the needed ObjCJava.jobs and EOControlJava.jobs I get a
> bunch of errors from the generated stub files. A typical errors chunk
> would be: "parse error before ')'", or "parse error before 'AEUser'",
> and then "AEUser is undeclared'".
> 
> The code these errors refer to is:
> /*
>  * AEAccount.setDsm (LAEUser;)V
>  *
>  * - (void)setDsm:(AEUser *)value
>   */
> NSJVM_STUB_NAME_SIMPLE(AEAccount, setDsm, void)
> NSJVM_STUB_ARGS_START_INSTANCE
> NSJVM_STUB_ARG(1, JAVAHandle)
> NSJVM_STUB_ARGS_END
> NSJVM_STUB_BODY(NSJVM_DECLARE_ID(1) struct objc_super r; ,
>     r.class = __NSRealObjcClassForId(r.receiver = NSJVM_RECEIVER);
>     NSJVM_INVOKE_VOID(((void (*)(struct objc_super *, SEL, AEUser *))
> OBJC_MSG_SEND_SUPER(,,,,,,,))(&r, @selector(setDsm:),
> NSJVM_ARG_ID(1))) ,
>     NSJVM_RETVAL_VOID ,
>     NSJVM_RETTYPE_VOID)
> 
> The head of the jobs file is:
> 
> # This .jobs file was automatically generated for your bridging
> convenience.
> # Do not edit this file by hand, use WrapIt or any .jobs creation
> tool!
> 
> # Pseudo-comment giving the version of WrapIt writing this file.
> 
> #> version 36
> 
> # Source of the Objective-C interfaces specifications.
> 
> #
> # The name of this package.
> #
> name WrappTest
> 
> 
> header AEOBase/AEOBase.h
> 
> #
> # What other .jobs files bridget should include (for class mappings,
> # type definitions, etc.)
> #
> import ObjCJava.jobs
> import EOControlJava.jobs
> 
> 
> 
> 
> Any ideas?
> 
> Eyal
> 
> 
> ===================================================
> Eyal Eithcowich
> Apple Enterprise Software
> Email: [EMAIL PROTECTED]
> Phone: (917) 327-6037

Reply via email to