Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

JavaScript Structure Handling



I'm just starting to work with Quartz and JavaScript and running into some brick walls with structures.

Here is the code I have:

function (__string output) main (__structure show_data)
{
	var result = new Object();
	
	var value = show_data[0];

	result.output = value;
	
	return result;

}

This is throwing the error TypeError: Null Value but I have no clue why that wouldn't be valid. Can anybody tell me what I'm doing wrong here? The structure entering the JavaScript patch is a simple, four value structure like so:

0: "time" = 4:30
1: "load" = 4:15
2: "line" = 4:00
3: "avail" = 0


Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.