0
如果我有一个类BFLocation
,我将这些对象的数组传递到我的applescript-objc中,如何访问类属性?Applescript-objc - 访问类属性
BFLocation.h
@property NSString *url;
BFManager.h
#import "BFLocation.h"
@interface script : NSObject
- (void)processLocations:(NSArray *)locations;
@end
BFManager.applescript
script BFManager
property parent : class "NSObject"
on processLocations_(locations)
repeat with location in locations
log location's url
end repeat
end processLocations
我得到 <NSAppleEventDescriptor: 'obj '{ 'form':'prop', 'want':'prop', 'seld':'url ', 'from':'obj '{ 'form':'ID ', 'want':'ocid', 'seld':'optr'($C0FF060080610000$), 'from':null() } }>
我是否需要投射位置以便知道它是一个BFLocation
对象?为什么我得到一个NSAppleEventDescriptor而不是预期的字符串?