On 3/5/05 7:02 AM, "James Spencer" <email@hidden> wrote:
> I'm very very new to AppleScript Studio so this may be nonsense but
> does passing "parameters {"hello", "hey"}" automatically cause the
> creation of NSStrings from "hello" and "hey"? setObject:forKey:
> requires both parameters to be Cocoa objects.
Yes. Regular strings (actually Unicode strings, but regular MacRoman strings
are first coerced to Unicode text) do automatically bridge to NSString
objects when using call method. Similarly AppleScript integers and reals
bridge to NSNumber, lists bridge to NSArray and NSMutableArray, records
bridge to NSDictionary and NSMutableDictionary (which is Tetsuro ought to be
be able to set his variable theDict to his call method without an error - I
think), and dates to NSDate (not NSCalendarDate). In fact a Method which
requires a plain C int might need a cast from NSNumber - I've forgotten . If
the 'with paramater 10' I suggested still doesn't work it might be for that
reason - let's see what Tetsuro reports.
--
Paul Berkowitz
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-studio mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-studio/email@hidden
This email sent to email@hidden