• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Getting clipboard text contents
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Getting clipboard text contents


  • Subject: Getting clipboard text contents
  • From: Austin Sarner <email@hidden>
  • Date: Sat, 15 Jan 2005 23:19:41 -0800

After reading through the docs and writing a working clipboard text setting method, I'm not exactly sure why the below does not work.  It simply does not return the clipboard contents.  Thanks a bunch for any nudge in the right direction.

NSPasteboard *thePasteboard = [NSPasteboard generalPasteboard];
NSMutableArray * types = [[NSMutableArray alloc] init];
int i;
[types addObject:NSStringPboardType];
i = [thePasteboard declareTypes:types owner:nil];
NSLog([thePasteboard stringForType:NSStringPboardType]);
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Getting clipboard text contents
      • From: The Karl Adam <email@hidden>
  • Prev by Date: Re: [Moderator] "RFC" -- Specialist lists (was Re: Bindings Book !!!!!)
  • Next by Date: Re: Getting clipboard text contents
  • Previous by thread: Re: Many similar controls; best practices?
  • Next by thread: Re: Getting clipboard text contents
  • Index(es):
    • Date
    • Thread