Hi Phil,
In the UIViewController that you want to receive this object,
implement the following initializer (defined in
UIViewControllerAdditions):
- (id)initWithNavigatorURL:(NSURL*)URL query:(NSDictionary*)query
Nothing weird is required in the mappings. For example, I have...
[map from:@"tt://blah" toViewController:[MyBlahViewControllerClass class]];
Then, when you wish to open this URL and pass along the query
dictionary, do something like:
[[TTNavigator navigator] openURL:@"tt://blah"
query:myDictionaryFullOfObjects animated:YES];
You mention that you're trying to do all of this within a table view.
As you've noticed, the standard plumbing provided by TTTableLinkedItem
isn't going to help you pass along arbitrary query dictionaries.
You'll need to override the following method which comes along with
TTTableViewController:
- (void)didSelectObject:(id)object atIndexPath:(NSIndexPath*)indexPath
Maybe you're needs aren't that complex, and you just test which
'object' was selected and call openURL. Maybe you build some fancier
TTTableLinkedItem that also holds a query dictionary along with a URL.
That's up to you.
Hope this helps!
Fred
> --
>
> You received this message because you are subscribed to the Google Groups "Three20" group.
> To post to this group, send email to
thr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/three20?hl=.
>
>
>