Visitors to VTC.com will be able to view all introductory videos for each training course.
Free Trial Members will gain access to first three chapters for each training course.
Full Access Members have full access to VTC.com�s entire library of video tutorials.
Now that we can see our tasks, let's update the application so that when we double click on a task, the information is actually filled into the task edit window. Let's start by going to the task edit window, and creating a new property. We'll also make use of the computed property for this. The regular property is simply the background storage for the computed property. So our getter will simply return the real property, our setter will set the real property, but in addition it will also populate the fields. Here we will set the focus to the task name field, and put the cursor after any text. Let's go back to the ToDo window and look at our edit task method. Right now we don't do much, we just instantiate a task edit window and we show it. But we now have a new method, or I should say a new computed property, the function is very similar to a method, that we can assign a value to. So if a row has been selected and we can open it in the task edit window. You'll remember that in the row tag of the task list we saved a reference to the task class. This is so we can use it now. This does need to be public so we can call it from here. Let's save and run. Recall that the various ways we can open the task edit is by double clicking, clicking the button, or using the menu. Let's click the button and we now have the fields filled in. You'll notice the priority did not get filled in because we did not create a method to find the correct priority in the drop down list. So let's do that next. We will add a new method called select priority, it will simply scan through the values in the pop up list, and when they match the priority, select it. We'll run the project again, and priority three is now filled in.
| Course: | Real Studio |
| Author: | Paul Lefebvre |
| SKU: | 34190 |
| ISBN: | 1-936334-77-1 |
| Release Date: | 2011-02-02 |
| Duration: | 7 hrs / 87 lessons |
| Work Files: |
Yes |
| Captions: | No |
| Compatibility: |
Vista/XP/2000, OS X, Linux QuickTime 7, Flash 8 |