Hey guys, after a long break (well not really break, I've been swamped in college stuff) I'm back working on iProcrastinate. One thing a buddy of mine suggested is putting a percentage completed column in the main window of the app that does some simple division based on the number of steps you've completed over the number of total steps. For example, if you're writing a paper and you've completed 3 of the 4 steps you set up, it would read 75%. This value should automatically update based on the number of steps, but I'm having trouble with the math.
How can I set up the model key path in a way that would do this division for me? I made small progress when I bound the column to the @count property of the ArrangedObjects controller key of my Steps NSArrayController. What this did was just changed the percentage value based on how many steps there were. (3 steps = 3%, 7 steps = 7%) This obviously isn't what I was going for, but was a step in the right direction. (In that it automatically updated when the number of steps increased or decreased.) Any ideas on how to implement some type of mathematics in this column? Thanks so much for all your help guys, I wouldn't be doing any of this if it wasn't for you.
How can I set up the model key path in a way that would do this division for me? I made small progress when I bound the column to the @count property of the ArrangedObjects controller key of my Steps NSArrayController. What this did was just changed the percentage value based on how many steps there were. (3 steps = 3%, 7 steps = 7%) This obviously isn't what I was going for, but was a step in the right direction. (In that it automatically updated when the number of steps increased or decreased.) Any ideas on how to implement some type of mathematics in this column? Thanks so much for all your help guys, I wouldn't be doing any of this if it wasn't for you.