• 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
Re: pasteAsRichText - how to specify source pasteboard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pasteAsRichText - how to specify source pasteboard


  • Subject: Re: pasteAsRichText - how to specify source pasteboard
  • From: stupidFish programming <email@hidden>
  • Date: Fri, 17 Jan 2003 20:13:07 +0100

Hi Douglas,

thanks for the tip. it works perfectly. :)
now I have another question you might know an answer to: is it possible to change a brushed metal window to aqua appearance during runtime?

thanks,

Ben

On Friday, January 17, 2003, at 07:10 PM, Douglas Davidson wrote:


On Friday, January 17, 2003, at 5:10 AM, Benjamin Salanki wrote:

I was wondering if there was a way to specify the source pasteboard for usage with NSTextView's pasteAsRichText: method. My app uses an internal pasteboard from which i want to paste the data into the > field.

Not per se, but you can certainly achieve the same result programmatically with

- (BOOL)readSelectionFromPasteboard:(NSPasteboard *)pboard type:(NSString *)type;

and an appropriate type, presumably NSRTFDPboardType, NSRTFPboardType, or NSHTMLPboardType, depending on what the pasteboard contains.

Douglas Davidson
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: pasteAsRichText - how to specify source pasteboard
      • From: Rakesh Pandey <email@hidden>
References: 
 >Re: pasteAsRichText - how to specify source pasteboard (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Re: Hacker's Fate
  • Next by Date: Re: OT: Re: null values in NSArray ???
  • Previous by thread: Re: pasteAsRichText - how to specify source pasteboard
  • Next by thread: Re: pasteAsRichText - how to specify source pasteboard
  • Index(es):
    • Date
    • Thread