Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.
Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.
- Subject: Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.
- From: Brian Bruinewoud <email@hidden>
- Date: Mon, 10 Aug 2009 21:51:46 +1000
I found the motivating example for this thread.
Files are:
http://media.pragprog.com/titles/amiphd/code/FileIO/FilesystemExplorer/Classes/DirectoryViewController.m
http://media.pragprog.com/titles/amiphd/code/FileIO/FilesystemExplorer/Classes/FileOverviewViewController.m
For this book:
http://books.pragprog.com/titles/amiphd/iphone-sdk-development
The methods of significance are as follows:
In DirectoryViewController's tableView:didSelectRowAtIndexPath: the
code creates a new FileOverviewViewController and sets its filePath
property.
In FileOverviewViewController's setFilePath: method, the code calls
[self updateFileOverview]
In FileOverviewViewController's updateFileOverview, the code updates
GUI elements (UILabel.text)
Is this all ok? Going on the previous discussion, I don't think so
(and I hope I'm right).
To fix, it would be sufficient to remove [self updateFileOverview]
from setFilePath and put it in viewWillAppear. Right?
I already raised a bug against the book for other elements of
setFilePath being incorrect/non-idiomatic, looks like there might be
another...
Please confirm or clarify my understandings,
Thanks,
Brian.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden