• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to support 'every' object in script interface
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: How to support 'every' object in script interface
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: How to support 'every' object in script interface (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: How to find the manual
  • Next by Date: Re: Equality Operator Syntax
  • Previous by thread: Re: How to support 'every' object in script interface
  • Next by thread: Re: How to support 'every' object in script interface
  • Index(es):
    • Date
    • Thread