Re: passing an object between views

2008-08-20 Thread John Greene
I appear to have lied: the object makes it across successfully. Thanks all for your help. John John Greene wrote: > Ah, reasonably better! Now I have: > > - (void)tableView:(UITableView *)tableView > didSelectRowAtIndexPath:(NSIndexPath *)indexPath { > if(dvController == nil) >

Re: passing an object between views

2008-08-20 Thread I. Savant
If I understand your question, it appears the concept you're missing is the Model-View-Controller (MVC) design pattern around which Cocoa is heavily designed. The controller should be where your XML (which belongs to the model layer) is generated. The controller would conceptually have an outlet

Re: passing an object between views

2008-08-20 Thread John Greene
Ah, reasonably better! Now I have: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { if(dvController == nil) { theaterDetailController *aController = [[theaterDetailController alloc] initWithNibName:@"th

Re: passing an object between views

2008-08-20 Thread Michael Ash
On Wed, Aug 20, 2008 at 12:47 PM, John Greene <[EMAIL PROTECTED]> wrote: > I've tried a couple of things to make the object available to > theaterDetailController with no success: > >* Creating a method: > >-(void)setTableData:(NSDictionary)myTheater { >

Re: passing an object between views

2008-08-20 Thread John Greene
Graham Cox wrote: > > On 20 Aug 2008, at 10:31 am, John Greene wrote: > >> I had originally thought that I could >> just write a method, setTableData in the secondary controller, that >> takes an object as an argument, and then use that object to build the >> secondary table. This is apparently fo

Re: passing an object between views

2008-08-19 Thread Graham Cox
On 20 Aug 2008, at 10:31 am, John Greene wrote: I had originally thought that I could just write a method, setTableData in the secondary controller, that takes an object as an argument, and then use that object to build the secondary table. This is apparently forbidden by the language, so what

Re: passing an object between views

2008-08-19 Thread j o a r
On Aug 19, 2008, at 5:31 PM, John Greene wrote: Hopefully this is a generic enough question that it applies to general Cocoa development: How do I pass an object between views? That is: I have an array of objects that I've built using NSXMLParser, and that populates a table, and clicking on a

passing an object between views

2008-08-19 Thread John Greene
Hello, Hopefully this is a generic enough question that it applies to general Cocoa development: How do I pass an object between views? That is: I have an array of objects that I've built using NSXMLParser, and that populates a table, and clicking on a cell changes my view to another table with