-
Notifications
You must be signed in to change notification settings - Fork 0
/
Actions.html
518 lines (485 loc) · 30.5 KB
/
Actions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6-nimbuskit"/>
<title>NimbusKit: Actions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
$(window).load(resizeHeight);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="appledocs.css" rel="stylesheet" type="text/css"/>
<link href="nimbuskit.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-24278774-1']);
_gaq.push(['_setDomainName', 'nimbuskit.info']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<a href="index.html"><img style="float:left" src="nimbus128.png" width="80" height="80" /></a>
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td style="padding-left: 0.5em;">
<div id="projectname">NimbusKit
 <span id="projectnumber">1.2.1 - <a href="http://github.com/jverkoey/nimbus">Fork Nimbus on Github</a> - <a href="http://wiki.nimbuskit.info/">Visit the Nimbus Wiki</a></span>
</div>
<div id="projectbrief">The iOS framework that grows only as fast as its documentation</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6-nimbuskit -->
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
<div id="nav-tree">
<div id="nav-tree-contents">
<div id="nav-sync" class="sync"></div>
</div>
</div>
<div id="splitbar" style="-moz-user-select:none;"
class="ui-resizable-handle">
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('Actions.html','');});
</script>
<div id="doc-content">
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> |
<a href="#typedef-members">Typedefs</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">Actions<div class="ingroups"><a class="el" href="NimbusCore.html">Nimbus Core</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class  </td><td class="memItemRight" valign="bottom"><a class="el" href="NIActions.html">NIActions</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft"> </td><td class="mdescRight">The <a class="el" href="NIActions.html" title="The NIActions class provides a generic interface for attaching actions to objects. ">NIActions</a> class provides a generic interface for attaching actions to objects. <a href="NIActions.html#details">More...</a><br/></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:gNIActionBlock"><td class="memItemLeft" align="right" valign="top">typedef BOOL(^ </td><td class="memItemRight" valign="bottom"><a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a> )(id object, id target, NSIndexPath *indexPath)</td></tr>
<tr class="separator:gNIActionBlock"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:gNIPushControllerAction"><td class="memItemLeft" align="right" valign="top"><a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="Actions.html#gNIPushControllerAction">NIPushControllerAction</a> (Class controllerClass)</td></tr>
<tr class="separator:gNIPushControllerAction"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Creating Table View Actions</h2></td></tr>
<tr class="memitem:ginitWithTarget:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#ginitWithTarget:">NIActions::initWithTarget:</a></td></tr>
<tr class="separator:ginitWithTarget:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Mapping Objects</h2></td></tr>
<tr class="memitem:gattachToObject:tapBlock:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToObject:tapBlock:">NIActions::attachToObject:tapBlock:</a></td></tr>
<tr class="separator:gattachToObject:tapBlock:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToObject:detailBlock:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToObject:detailBlock:">NIActions::attachToObject:detailBlock:</a></td></tr>
<tr class="separator:gattachToObject:detailBlock:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToObject:navigationBlock:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToObject:navigationBlock:">NIActions::attachToObject:navigationBlock:</a></td></tr>
<tr class="separator:gattachToObject:navigationBlock:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToObject:tapSelector:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToObject:tapSelector:">NIActions::attachToObject:tapSelector:</a></td></tr>
<tr class="separator:gattachToObject:tapSelector:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToObject:detailSelector:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToObject:detailSelector:">NIActions::attachToObject:detailSelector:</a></td></tr>
<tr class="separator:gattachToObject:detailSelector:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToObject:navigationSelector:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToObject:navigationSelector:">NIActions::attachToObject:navigationSelector:</a></td></tr>
<tr class="separator:gattachToObject:navigationSelector:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Mapping Classes</h2></td></tr>
<tr class="memitem:gattachToClass:tapBlock:"><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToClass:tapBlock:">NIActions::attachToClass:tapBlock:</a></td></tr>
<tr class="separator:gattachToClass:tapBlock:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToClass:detailBlock:"><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToClass:detailBlock:">NIActions::attachToClass:detailBlock:</a></td></tr>
<tr class="separator:gattachToClass:detailBlock:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToClass:navigationBlock:"><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToClass:navigationBlock:">NIActions::attachToClass:navigationBlock:</a></td></tr>
<tr class="separator:gattachToClass:navigationBlock:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToClass:tapSelector:"><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToClass:tapSelector:">NIActions::attachToClass:tapSelector:</a></td></tr>
<tr class="separator:gattachToClass:tapSelector:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToClass:detailSelector:"><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToClass:detailSelector:">NIActions::attachToClass:detailSelector:</a></td></tr>
<tr class="separator:gattachToClass:detailSelector:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gattachToClass:navigationSelector:"><td class="memItemLeft" align="right" valign="top">(void) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gattachToClass:navigationSelector:">NIActions::attachToClass:navigationSelector:</a></td></tr>
<tr class="separator:gattachToClass:navigationSelector:"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Object State</h2></td></tr>
<tr class="memitem:gisObjectActionable:"><td class="memItemLeft" align="right" valign="top">(BOOL) </td><td class="memItemRight" valign="bottom">- <a class="el" href="Actions.html#gisObjectActionable:">NIActions::isObjectActionable:</a></td></tr>
<tr class="separator:gisObjectActionable:"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:gobjectFromKeyClass:map:"><td class="memItemLeft" align="right" valign="top">(id) </td><td class="memItemRight" valign="bottom">+ <a class="el" href="Actions.html#gobjectFromKeyClass:map:">NIActions::objectFromKeyClass:map:</a></td></tr>
<tr class="separator:gobjectFromKeyClass:map:"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Overview</h2>
<p>For attaching actions to objects. </p>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="gNIActionBlock"></a>
<div class="memitem">
<h3 class="memname">NIActionBlock</h3>
<div class="memdoc">
<h5>Discussion</h5>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>An action was performed on this object. </td></tr>
<tr><td class="paramname">target</td><td>The target that was attached to the <a class="el" href="NIActions.html" title="The NIActions class provides a generic interface for attaching actions to objects. ">NIActions</a> instance. </td></tr>
<tr><td class="paramname">indexPath</td><td>The index path of the object. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="ginitWithTarget:"></a>
<div class="memitem">
<h3 class="memname">initWithTarget:</h3>
<div class="memdoc">
<p class="abstract">Initializes a newly allocated table view actions object with the given target. </p>
<div class="declaration">
- (id)initWithTarget:(id)target;</td></tr>
</div>
<h5>Discussion</h5>
<p>This is the designated initializer.</p>
<p>The target is stored as a weak reference internally.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">target</td><td>The target that will be provided to action blocks and on which selectors will be performed. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gattachToObject:tapBlock:"></a>
<div class="memitem">
<h3 class="memname">attachToObject:tapBlock:</h3>
<div class="memdoc">
<p class="abstract">Attaches a tap action to the given object. </p>
<div class="declaration">
- (id)attachToObject:(id<NSObject>)object tapBlock:(<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a>)action;</td></tr>
</div>
<h5>Discussion</h5>
<p>A cell with an attached tap action will have its selectionStyle set to <code>tableViewCellSelectionStyle</code> when the cell is displayed.</p>
<p>The action will be executed when the object's corresponding cell is tapped. The object argument of the block will be the object to which this action was attached. The target argument of the block will be this receiver's <code>target</code>.</p>
<p>Return NO if the tap action is used to present a modal view controller. This provides a visual reminder to the user when the modal controller is dismissed as to which cell was tapped to invoke the modal controller.</p>
<p>The tap action will be invoked first, followed by the navigation action if one is attached.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to attach the action to. This object must be contained within an <a class="el" href="NITableViewModel.html" title="A non-mutable table view model that complies to the UITableViewDataSource protocol. ">NITableViewModel</a>. </td></tr>
<tr><td class="paramname">action</td><td>The tap action block. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object that you attached this action to.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="Actions.html#gattachToObject:tapSelector:" title="Attaches a tap selector to the given object. ">- attachToObject:tapSelector:</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gattachToObject:detailBlock:"></a>
<div class="memitem">
<h3 class="memname">attachToObject:detailBlock:</h3>
<div class="memdoc">
<p class="abstract">Attaches a detail action to the given object. </p>
<div class="declaration">
- (id)attachToObject:(id<NSObject>)object detailBlock:(<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a>)action;</td></tr>
</div>
<h5>Discussion</h5>
<p>When a cell with a detail action is displayed, its accessoryType will be set to UITableViewCellAccessoryDetailDisclosureButton.</p>
<p>When a cell's detail button is tapped, the detail action block will be executed. The return value of the block is ignored.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to attach the action to. This object must be contained within an <a class="el" href="NITableViewModel.html" title="A non-mutable table view model that complies to the UITableViewDataSource protocol. ">NITableViewModel</a>. </td></tr>
<tr><td class="paramname">action</td><td>The detail action block. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object that you attached this action to. </dd></dl>
</div>
</div>
<a class="anchor" id="gattachToObject:navigationBlock:"></a>
<div class="memitem">
<h3 class="memname">attachToObject:navigationBlock:</h3>
<div class="memdoc">
<p class="abstract">Attaches a navigation action to the given object. </p>
<div class="declaration">
- (id)attachToObject:(id<NSObject>)object navigationBlock:(<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a>)action;</td></tr>
</div>
<h5>Discussion</h5>
<p>When a cell with a navigation action is displayed, its accessoryType will be set to UITableViewCellAccessoryDisclosureIndicator if there is no detail action, otherwise the detail disclosure indicator takes precedence.</p>
<p>When a cell with a navigation action is tapped the navigation block will be executed.</p>
<p>If a tap action also exists for this object then the tap action will be executed first, followed by the navigation action.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to attach the action to. This object must be contained within an <a class="el" href="NITableViewModel.html" title="A non-mutable table view model that complies to the UITableViewDataSource protocol. ">NITableViewModel</a>. </td></tr>
<tr><td class="paramname">action</td><td>The navigation action block. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object that you attached this action to. </dd></dl>
</div>
</div>
<a class="anchor" id="gattachToObject:tapSelector:"></a>
<div class="memitem">
<h3 class="memname">attachToObject:tapSelector:</h3>
<div class="memdoc">
<p class="abstract">Attaches a tap selector to the given object. </p>
<div class="declaration">
- (id)attachToObject:(id<NSObject>)object tapSelector:(SEL)selector;</td></tr>
</div>
<h5>Discussion</h5>
<p>The method signature for the selector is: </p>
<div class="fragment"><div class="line">- (BOOL)didTapObject:(<span class="keywordtype">id</span>)object;</div>
</div><!-- fragment --><p>A cell with an attached tap action will have its selectionStyle set to <code>tableViewCellSelectionStyle</code> when the cell is displayed.</p>
<p>The selector will be performed on the action object's target when a cell with a tap selector is tapped, unless that selector does not exist on the <code>target</code> in which case nothing happens.</p>
<p>If the selector invocation returns YES then the cell will be deselected immediately after the invocation completes its execution. If NO is returned then the cell's selection will remain.</p>
<p>Return NO if the tap action is used to present a modal view controller. This provides a visual reminder to the user when the modal controller is dismissed as to which cell was tapped to invoke the modal controller.</p>
<p>The tap action will be invoked first, followed by the navigation action if one is attached.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to attach the selector to. This object must be contained within an <a class="el" href="NITableViewModel.html" title="A non-mutable table view model that complies to the UITableViewDataSource protocol. ">NITableViewModel</a>. </td></tr>
<tr><td class="paramname">selector</td><td>The selector that will be invoked by this action. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object that you attached this action to.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="Actions.html#gattachToObject:tapBlock:" title="Attaches a tap action to the given object. ">- attachToObject:tapBlock:</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gattachToObject:detailSelector:"></a>
<div class="memitem">
<h3 class="memname">attachToObject:detailSelector:</h3>
<div class="memdoc">
<p class="abstract">Attaches a detail selector to the given object. </p>
<div class="declaration">
- (id)attachToObject:(id<NSObject>)object detailSelector:(SEL)selector;</td></tr>
</div>
<h5>Discussion</h5>
<p>The method signature for the selector is: </p>
<div class="fragment"><div class="line">- (void)didTapObject:(<span class="keywordtype">id</span>)object;</div>
</div><!-- fragment --><p>A cell with an attached tap action will have its selectionStyle set to <code>tableViewCellSelectionStyle</code> and its accessoryType set to <code>UITableViewCellAccessoryDetailDisclosureButton</code> when the cell is displayed.</p>
<p>The selector will be performed on the action object's target when a cell with a detail selector's accessory indicator is tapped, unless that selector does not exist on the <code>target</code> in which case nothing happens.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to attach the selector to. This object must be contained within an <a class="el" href="NITableViewModel.html" title="A non-mutable table view model that complies to the UITableViewDataSource protocol. ">NITableViewModel</a>. </td></tr>
<tr><td class="paramname">selector</td><td>The selector that will be invoked by this action. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object that you attached this action to.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="Actions.html#gattachToObject:detailBlock:" title="Attaches a detail action to the given object. ">- attachToObject:detailBlock:</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gattachToObject:navigationSelector:"></a>
<div class="memitem">
<h3 class="memname">attachToObject:navigationSelector:</h3>
<div class="memdoc">
<p class="abstract">Attaches a navigation selector to the given object. </p>
<div class="declaration">
- (id)attachToObject:(id<NSObject>)object navigationSelector:(SEL)selector;</td></tr>
</div>
<h5>Discussion</h5>
<p>The method signature for the selector is: </p>
<div class="fragment"><div class="line">- (void)didTapObject:(<span class="keywordtype">id</span>)object;</div>
</div><!-- fragment --><p>A cell with an attached navigation action will have its selectionStyle set to <code>tableViewCellSelectionStyle</code> and its accessoryType set to <code>UITableViewCellAccessoryDetailDisclosureButton</code>, unless it also has an attached detail action, in which case its accessoryType will be set to <code>UITableViewCellAccessoryDisclosureIndicator</code> when the cell is displayed.</p>
<p>The selector will be performed on the action object's target when a cell with a navigation selector is tapped, unless that selector does not exist on the <code>target</code> in which case nothing happens.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">object</td><td>The object to attach the selector to. This object must be contained within an <a class="el" href="NITableViewModel.html" title="A non-mutable table view model that complies to the UITableViewDataSource protocol. ">NITableViewModel</a>. </td></tr>
<tr><td class="paramname">selector</td><td>The selector that will be invoked by this action. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The object that you attached this action to.</dd></dl>
<dl class="section see"><dt>See Also</dt><dd><a class="el" href="Actions.html#gattachToObject:navigationBlock:" title="Attaches a navigation action to the given object. ">- attachToObject:navigationBlock:</a> </dd></dl>
</div>
</div>
<a class="anchor" id="gattachToClass:tapBlock:"></a>
<div class="memitem">
<h3 class="memname">attachToClass:tapBlock:</h3>
<div class="memdoc">
<p class="abstract">Attaches a tap block to a class. </p>
<div class="declaration">
- (void)attachToClass:(Class)aClass tapBlock:(<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a>)action;</td></tr>
</div>
<h5>Discussion</h5>
<p>This method behaves similarly to attachToObject:tapBlock: except it attaches a tap action to all instances and subclassed instances of a given class.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">aClass</td><td>The class to attach the action to. </td></tr>
<tr><td class="paramname">action</td><td>The tap action block. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gattachToClass:detailBlock:"></a>
<div class="memitem">
<h3 class="memname">attachToClass:detailBlock:</h3>
<div class="memdoc">
<p class="abstract">Attaches a detail block to a class. </p>
<div class="declaration">
- (void)attachToClass:(Class)aClass detailBlock:(<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a>)action;</td></tr>
</div>
<h5>Discussion</h5>
<p>This method behaves similarly to attachToObject:detailBlock: except it attaches a detail action to all instances and subclassed instances of a given class.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">aClass</td><td>The class to attach the action to. </td></tr>
<tr><td class="paramname">action</td><td>The detail action block. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gattachToClass:navigationBlock:"></a>
<div class="memitem">
<h3 class="memname">attachToClass:navigationBlock:</h3>
<div class="memdoc">
<p class="abstract">Attaches a navigation block to a class. </p>
<div class="declaration">
- (void)attachToClass:(Class)aClass navigationBlock:(<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a>)action;</td></tr>
</div>
<h5>Discussion</h5>
<p>This method behaves similarly to attachToObject:navigationBlock: except it attaches a navigation action to all instances and subclassed instances of a given class.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">aClass</td><td>The class to attach the action to. </td></tr>
<tr><td class="paramname">action</td><td>The navigation action block. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gattachToClass:tapSelector:"></a>
<div class="memitem">
<h3 class="memname">attachToClass:tapSelector:</h3>
<div class="memdoc">
<p class="abstract">Attaches a tap selector to a class. </p>
<div class="declaration">
- (void)attachToClass:(Class)aClass tapSelector:(SEL)selector;</td></tr>
</div>
<h5>Discussion</h5>
<p>This method behaves similarly to attachToObject:tapBlock: except it attaches a tap action to all instances and subclassed instances of a given class.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">aClass</td><td>The class to attach the action to. </td></tr>
<tr><td class="paramname">selector</td><td>The tap selector. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gattachToClass:detailSelector:"></a>
<div class="memitem">
<h3 class="memname">attachToClass:detailSelector:</h3>
<div class="memdoc">
<p class="abstract">Attaches a detail selector to a class. </p>
<div class="declaration">
- (void)attachToClass:(Class)aClass detailSelector:(SEL)selector;</td></tr>
</div>
<h5>Discussion</h5>
<p>This method behaves similarly to attachToObject:detailBlock: except it attaches a detail action to all instances and subclassed instances of a given class.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">aClass</td><td>The class to attach the action to. </td></tr>
<tr><td class="paramname">selector</td><td>The tap selector. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gattachToClass:navigationSelector:"></a>
<div class="memitem">
<h3 class="memname">attachToClass:navigationSelector:</h3>
<div class="memdoc">
<p class="abstract">Attaches a navigation selector to a class. </p>
<div class="declaration">
- (void)attachToClass:(Class)aClass navigationSelector:(SEL)selector;</td></tr>
</div>
<h5>Discussion</h5>
<p>This method behaves similarly to attachToObject:navigationBlock: except it attaches a navigation action to all instances and subclassed instances of a given class.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">aClass</td><td>The class to attach the action to. </td></tr>
<tr><td class="paramname">selector</td><td>The tap selector. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
<a class="anchor" id="gisObjectActionable:"></a>
<div class="memitem">
<h3 class="memname">isObjectActionable:</h3>
<div class="memdoc">
<p class="abstract">Returns whether or not the object has any actions attached to it. </p>
<div class="declaration">
- (BOOL)isObjectActionable:(id<NSObject>)object;</td></tr>
</div>
</div>
</div>
<a class="anchor" id="gobjectFromKeyClass:map:"></a>
<div class="memitem">
<h3 class="memname">objectFromKeyClass:map:</h3>
<div class="memdoc">
<p class="abstract">Returns a mapped object from the given key class. </p>
<div class="declaration">
+ (id)objectFromKeyClass:(Class)keyClass map:(NSMutableDictionary *)map;</td></tr>
</div>
<h5>Discussion</h5>
<p>If the key class is a subclass of any mapped key classes, the nearest ancestor class's mapped object will be returned and keyClass will be added to the map for future accesses.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">keyClass</td><td>The key class that will be used to find the mapping in map. </td></tr>
<tr><td class="paramname">map</td><td>A map of key classes to classes. May be modified if keyClass is a subclass of any existing key classes. </td></tr>
</table>
</dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>The mapped object if a match for keyClass was found in map. nil is returned otherwise. </dd></dl>
</div>
</div>
<a class="anchor" id="gNIPushControllerAction"></a>
<div class="memitem">
<h3 class="memname">NIPushControllerAction</h3>
<div class="memdoc">
<p class="abstract">Returns a block that pushes an instance of the controllerClass onto the navigation stack. </p>
<div class="declaration">
<a class="el" href="Actions.html#gNIActionBlock">NIActionBlock</a> NIPushControllerAction:(Class)controllerClass;</td></tr>
</div>
<h5>Discussion</h5>
<p>Allocates an instance of the controller class and calls the init selector.</p>
<p>The target property of the <a class="el" href="NIActions.html" title="The NIActions class provides a generic interface for attaching actions to objects. ">NIActions</a> instance must be an instance of UIViewController with an attached navigationController.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">controllerClass</td><td>The class of controller to instantiate. </td></tr>
</table>
</dd>
</dl>
</div>
</div>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<script type="text/javascript" src="widget.js"></script>
</body>
</html>