Source

cappuccino-docs / cappuccino docs / cappuccino.org / learn / documentation / class_c_p_pasteboard.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
<!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">

<!-- Mirrored from cappuccino.org/learn/documentation/class_c_p_pasteboard.html by HTTrack Website Copier/3.x [XR&CO'2006], Mon, 20 Sep 2010 02:17:46 GMT -->
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Cappuccino API: CPPasteboard Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Generated by Doxygen 1.6.1 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&nbsp;List</span></a></li>
      <li><a href="classes.html"><span>Class&nbsp;Index</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="contents">
<h1>CPPasteboard Class Reference<br/>
<small>
[<a class="el" href="group__appkit.html">AppKit</a>]</small>
</h1><!-- doxytag: class="CPPasteboard" -->
<p><a href="class_c_p_pasteboard-members.html">List of all members.</a></p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td colspan="2"><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(unsigned)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#ac1d92b0a2cf231d9eb647dd2191360d6">addTypes:owner:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a2913f9039a7d6f436918b9d786ba4eed">availableTypeFromArray:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(unsigned)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#aacc66a2496df4fc74838935d49939ea2">changeCount</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_data.html">CPData</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a868beafdb89cedabe441707bc1540775">dataForType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(unsigned)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a64b3f3c2088412a6577c1905bb758f8e">declareTypes:owner:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#ae6a83bdb8c8609c7978183fa57d0d851">pasteboard:provideDataForType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(id)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a35c3de5d640d442f3c7598f95806c094">propertyListForType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(BOOL)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a0f4cce5a1bd580066621bd0bd9884cae">setData:forType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(BOOL)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a4eed072ca6e108e1291fcc130ad5c3e9">setPropertyList:forType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a439997fa8a5d77a76383821974a3a0da">setString:forType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#a838522162684a86b9d7cfb14faa36573">stringForType:</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td><td class="memItemRight" valign="bottom">- <a class="el" href="class_c_p_pasteboard.html#af18aef30b76b3dfe41014b12efb94329">types</a><code> [implementation]</code></td></tr>
<tr><td colspan="2"><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(id)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_pasteboard.html#a085d41e5f0d2c94888b0fab4647e07b8">generalPasteboard</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(void)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_pasteboard.html#a3fee2497608335c2af4502c94b322b99">initialize</a><code> [implementation]</code></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">(id)&nbsp;</td><td class="memItemRight" valign="bottom">+ <a class="el" href="class_c_p_pasteboard.html#adc671279bc4d0608ebe421e4657ecd07">pasteboardWithName:</a><code> [implementation]</code></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<p>CPPasteBoard is the object responsible for cut/copy/paste and drag&amp;drop operations. </p>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00061">61</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ac1d92b0a2cf231d9eb647dd2191360d6"></a><!-- doxytag: member="CPPasteboard::addTypes:owner:" ref="ac1d92b0a2cf231d9eb647dd2191360d6" args="(CPArray types,[owner] id anOwner)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (unsigned) addTypes: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
          <td class="paramname"> <em>types</em></td>
        </tr>
        <tr>
          <td class="paramkey">owner:</td>
          <td></td>
          <td class="paramtype">(id)&nbsp;</td>
          <td class="paramname"> <em>anOwner</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Adds supported data types to the pasteboard </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>types</em>&nbsp;</td><td>the data types </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>anOwner</em>&nbsp;</td><td>the object that contains the data types </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pasteboard's change count </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00146">146</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a2913f9039a7d6f436918b9d786ba4eed"></a><!-- doxytag: member="CPPasteboard::availableTypeFromArray:" ref="a2913f9039a7d6f436918b9d786ba4eed" args="(CPArray anArray)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="class_c_p_string.html">CPString</a>) availableTypeFromArray: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
          <td class="paramname"> <em>anArray</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Checks the pasteboard's types for a match with the types listen in the specified array. The array should be ordered by the requestor's most preferred data type first. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>anArray</em>&nbsp;</td><td>an array of requested types ordered by preference </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the highest match with the pasteboard's supported types or <code>nil</code> if no match was found </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00257">257</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="aacc66a2496df4fc74838935d49939ea2"></a><!-- doxytag: member="CPPasteboard::changeCount" ref="aacc66a2496df4fc74838935d49939ea2" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (unsigned) changeCount </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the number of changes that have occurred to this pasteboard </p>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00275">275</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a868beafdb89cedabe441707bc1540775"></a><!-- doxytag: member="CPPasteboard::dataForType:" ref="a868beafdb89cedabe441707bc1540775" args="(CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="class_c_p_data.html">CPData</a>) dataForType: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the pasteboard data for the specified data type </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the requested data type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the requested data or <code>nil</code> if the data doesn't exist </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00285">285</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a64b3f3c2088412a6577c1905bb758f8e"></a><!-- doxytag: member="CPPasteboard::declareTypes:owner:" ref="a64b3f3c2088412a6577c1905bb758f8e" args="(CPArray types,[owner] id anOwner)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (unsigned) declareTypes: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_array.html">CPArray</a>)&nbsp;</td>
          <td class="paramname"> <em>types</em></td>
        </tr>
        <tr>
          <td class="paramkey">owner:</td>
          <td></td>
          <td class="paramtype">(id)&nbsp;</td>
          <td class="paramname"> <em>anOwner</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the data types that this pasteboard will contain. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>type</em>&nbsp;</td><td>the data types it will support </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>anOwner</em>&nbsp;</td><td>the object that contains the the data </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the pasteboard's change count </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00182">182</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a085d41e5f0d2c94888b0fab4647e07b8"></a><!-- doxytag: member="CPPasteboard::generalPasteboard" ref="a085d41e5f0d2c94888b0fab4647e07b8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (id) generalPasteboard </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a new instance of a pasteboard </p>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00092">92</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a3fee2497608335c2af4502c94b322b99"></a><!-- doxytag: member="CPPasteboard::initialize" ref="a3fee2497608335c2af4502c94b322b99" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (void) initialize </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00076">76</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="ae6a83bdb8c8609c7978183fa57d0d851"></a><!-- doxytag: member="CPPasteboard::pasteboard:provideDataForType:" ref="ae6a83bdb8c8609c7978183fa57d0d851" args="(CPPasteboard aPasteboard,[provideDataForType] CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) pasteboard: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_pasteboard.html">CPPasteboard</a>)&nbsp;</td>
          <td class="paramname"> <em>aPasteboard</em></td>
        </tr>
        <tr>
          <td class="paramkey">provideDataForType:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>method provided for integration with native pasteboard </p>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00323">323</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="adc671279bc4d0608ebe421e4657ecd07"></a><!-- doxytag: member="CPPasteboard::pasteboardWithName:" ref="adc671279bc4d0608ebe421e4657ecd07" args="(CPString aName)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">+ (id) pasteboardWithName: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aName</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns a pasteboard with the specified name. If the pasteboard doesn't exist, it will be created. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aName</em>&nbsp;</td><td>the name of the pasteboard </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the requested pasteboard </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00102">102</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a35c3de5d640d442f3c7598f95806c094"></a><!-- doxytag: member="CPPasteboard::propertyListForType:" ref="a35c3de5d640d442f3c7598f95806c094" args="(CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (id) propertyListForType: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the property list for the specified data type </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the requested data type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the property list or <code>nil</code> if the list was not found </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00341">341</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a0f4cce5a1bd580066621bd0bd9884cae"></a><!-- doxytag: member="CPPasteboard::setData:forType:" ref="a0f4cce5a1bd580066621bd0bd9884cae" args="(CPData aData,[forType] CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) setData: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_data.html">CPData</a>)&nbsp;</td>
          <td class="paramname"> <em>aData</em></td>
        </tr>
        <tr>
          <td class="paramkey">forType:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the pasteboard data for the specified type </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aData</em>&nbsp;</td><td>the data </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the data type being set </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>YES</code> if the data was successfully written to the pasteboard </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00218">218</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a4eed072ca6e108e1291fcc130ad5c3e9"></a><!-- doxytag: member="CPPasteboard::setPropertyList:forType:" ref="a4eed072ca6e108e1291fcc130ad5c3e9" args="(id aPropertyList,[forType] CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (BOOL) setPropertyList: </td>
          <td></td>
          <td class="paramtype">(id)&nbsp;</td>
          <td class="paramname"> <em>aPropertyList</em></td>
        </tr>
        <tr>
          <td class="paramkey">forType:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Writes the specified property list as data for the specified type </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aPropertyList</em>&nbsp;</td><td>the property list to write </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the data type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>YES</code> if the property list was successfully written to the pasteboard </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00234">234</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a439997fa8a5d77a76383821974a3a0da"></a><!-- doxytag: member="CPPasteboard::setString:forType:" ref="a439997fa8a5d77a76383821974a3a0da" args="(CPString aString,[forType] CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (void) setString: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aString</em></td>
        </tr>
        <tr>
          <td class="paramkey">forType:</td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td><td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Sets the specified string as data for the specified type </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aString</em>&nbsp;</td><td>the string to write </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the data type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd><code>YES</code> if the string was successfully written to the pasteboard </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00245">245</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="a838522162684a86b9d7cfb14faa36573"></a><!-- doxytag: member="CPPasteboard::stringForType:" ref="a838522162684a86b9d7cfb14faa36573" args="(CPString aType)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="class_c_p_string.html">CPString</a>) stringForType: </td>
          <td></td>
          <td class="paramtype">(<a class="el" href="class_c_p_string.html">CPString</a>)&nbsp;</td>
          <td class="paramname"> <em>aType</em></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the string for the specified data type </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>aType</em>&nbsp;</td><td>the requested data type </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the string or <code>nil</code> if the string was not found </dd></dl>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00356">356</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<a class="anchor" id="af18aef30b76b3dfe41014b12efb94329"></a><!-- doxytag: member="CPPasteboard::types" ref="af18aef30b76b3dfe41014b12efb94329" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (<a class="el" href="class_c_p_array.html">CPArray</a>) types </td>
          <td></td>
          <td class="paramname"></td>
          <td>&nbsp;</td>
          <td><code> [implementation]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Returns the pasteboards supported types </p>

<p>Definition at line <a class="el" href="_c_p_pasteboard_8j_source.html#l00265">265</a> of file <a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>AppKit/<a class="el" href="_c_p_pasteboard_8j_source.html">CPPasteboard.j</a></li>
</ul>
</div>
<hr size="1"/><address style="text-align: right;"><small>Generated on Tue Apr 6 10:33:06 2010 for Cappuccino API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
</body>

<!-- Mirrored from cappuccino.org/learn/documentation/class_c_p_pasteboard.html by HTTrack Website Copier/3.x [XR&CO'2006], Mon, 20 Sep 2010 02:17:47 GMT -->
</html>