Could you set a "invalidate" bool when you read the file and parse only one time in the execute method? Or maybe you can parse and compile when you read the file, and store the GLuint representing the list in the patch's ivars to be executed during draw time?

On Aug 5, 2008, at 6:06 PM, Julien Rigal wrote:

Hello All,

I have implemented a patch with internal settings. In the settings panel, the user can choose a file with an NSOpenPanel. The file's content gets parsed into an NSDictionnary.

In the execute function, the patch reads the NSDictionary (which is quite large), compiles an OpenGL Display List, and then calls the list.

My question is, how can I execute the read/compile bit only when the user loads a file?

Regards,

Julien
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list ([email protected] )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/tkoelling%40apple.com

This email sent to [EMAIL PROTECTED]

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Quartzcomposer-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quartzcomposer-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to