• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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: Wed, 19 Aug 2009 20:02:46 +1000

Resending because I never saw this appear in the list.

On 10/08/2009, at 21:51 , Brian Bruinewoud wrote:

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


References: 
 >[iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation. (From: Brian Bruinewoud <email@hidden>)
 >Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation. (From: "Henry McGilton (Boulevardier)" <email@hidden>)
 >Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation. (From: Brian Bruinewoud <email@hidden>)
 >Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation. (From: Brian Bruinewoud <email@hidden>)

  • Prev by Date: Re: Need advice about how to create a Cocoa Framework
  • Next by Date: Re: int to bytes(value in NSString)
  • Previous by thread: Re: [iPhone 3.0; XCode 3.1.3] Question about when views are available for manipulation.
  • Next by thread: Giving the Root Object of an Outline View a Different Background Color.
  • Index(es):
    • Date
    • Thread