passing an object between views
passing an object between views
- Subject: passing an object between views
- From: John Greene <email@hidden>
- Date: Tue, 19 Aug 2008 17:31:00 -0700
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 a separate controller. 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's the proper approach? I could make the array available somehow to
the new controller, since I can pass the integer index, but I'm not sure
how!
Thanks,
John
_______________________________________________
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