CocoaDev

Edit AllPages

I am trying to enable Applescripting in an Application I’m working on. But I can’t seem to get it to work. When I access a variable with General/AppleScript in my application, I get the following error:

General/AppleScript Error:

got an error: Can't make into type reference. I'm at a loss as to why I can't access this variable. Any help would be greatly appreciated. Thank you to Dustin Voss for your General/HowToSupportAppleScript, I found it very useful. Here is my *.sdef file: <!DOCTYPE dictionary SYSTEM "file://localhost/System/Library/General/DTDs/sdef.dtd"> Here is the KVC of the cocoa key for vernum: UInt32 vernum; - (UInt32)vernum { return [[vernum retain] autorelease]; } - (void)setVernum:(UInt32)value { if (vernum != value) { [vernum release]; vernum = [value copy]; } } ---- UInt32 is a primitive, not a class. - (UInt32)vernum { return vernum; } - (void)setVernum:(UInt32)value { vernum = value; }