Re: How to support 'every' object in script interface
Re: How to support 'every' object in script interface
- Subject: Re: How to support 'every' object in script interface
- From: Steve Palmer <email@hidden>
- Date: Sun, 26 Jun 2005 10:17:41 -0700
Yes, I've implemented -objectSpecifier on the bar class but it isn't
being hit in this case. Instead, I'm getting an exception error where
none of my code is on the stack trace:
#0 0x928970e8 in -[NSException raise]
#1 0x9292ee74 in -[NSObject(NSKeyValueCoding) valueForUndefinedKey:]
#2 0x928d92c8 in _NSGetUsingKeyValueGetter
#3 0x9387d6fc in -[NSApplication(NSScripting) valueForKey:]
#4 0x92912a70 in -[NSScriptObjectSpecifier
objectsByEvaluatingWithContainers:]
#5 0x929123fc in -[NSScriptObjectSpecifier
objectsByEvaluatingSpecifier]
#6 0x92911f88 in -[NSScriptCommand evaluatedReceivers]
#7 0x92911be4 in -[NSScriptCommand executeCommand]
#8 0x9290f2e8 in -[NSScriptingAppleEventHandler
handleCommandEvent:withReplyEvent:]
#9 0x9287cc04 in -[NSAppleEventManager
dispatchRawAppleEvent:withRawReply:handlerRefCon:]
#10 0x9287ca64 in _NSAppleEventManagerGenericHandler
#11 0x91450a40 in aeDispatchAppleEvent
#12 0x914508dc in dispatchEventAndSendReply
#13 0x91450734 in aeProcessAppleEvent
#14 0x931253e4 in AEProcessAppleEvent
#15 0x9362b344 in _DPSNextEvent
#16 0x9362ae68 in -[NSApplication
nextEventMatchingMask:untilDate:inMode:dequeue:]
#17 0x936273cc in -[NSApplication run]
#18 0x93717c1c in NSApplicationMain
#19 0x00003160 in main at main.m:13
and the console log shows:
Direct Parameter: <NSPropertySpecifier: bar>
Receivers: <NSPropertySpecifier: bar>
Arguments: {}
It's likely crashing because valueForKey is looking for some method
on a class which is missing but a): there's no indication of which
method and b): there's no indication of which class. I've checked the
Apple documentation but it doesn't provide any clues. (This is Mac
OSX 10.4.1.)
- Steve
On Jun 26, 2005, at 3:27am, Bill Cheeseman wrote:
on 2005-06-25 11:07 PM, Steve Palmer at email@hidden
wrote:
But I'm not sure how to handle 'every bar'. Any
pointers?
I believe it should just work. At least, if you've implemented
-objectSpecifier in your bar class.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
http://www.quecheesoftware.com
PreFab Software - http://www.prefab.com/scripting.html
The AppleScript Sourcebook - http://www.AppleScriptSourcebook.com
Vermont Recipes - http://www.stepwise.com/Articles/VermontRecipes
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40opencommunity.co.uk
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden