Table of Contents
Previous Section
// WebScript Car.wosIn general, you use init or the component's constructor to initialize component instance variables instead of awake because init is invoked only at component initialization time, whereas awake is potentially invoked much more than that. If, however, you want to minimize the amount of state stored between cycles of the component action
- awake {
shoppingCart = [[self session] shoppingCart];
}
Table of Contents
Next Section