Re: pasteAsRichText - how to specify source pasteboard
Re: pasteAsRichText - how to specify source pasteboard
- Subject: Re: pasteAsRichText - how to specify source pasteboard
- From: Rakesh Pandey <email@hidden>
- Date: Sat, 18 Jan 2003 02:30:43 +0530
Hi,
Sorry!! last time I had posted against some other question by mistake..
An NSWindow's style is set when the object is initialized. Once set, it
can't be changed.
However if you want to change the window background color to aqua theme
you can do like this:
[[self window] setBackgroundColor:[NSColor windowBackgroundColor]];
But the window will still have the style of textured windows.
Thanks & Regards
Rakesh
On Saturday, Jan 18, 2003, at 00:43 Asia/Calcutta, stupidFish
programming wrote:
>
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.
>
Rakesh Pandey
------------------------------------------------------------------------
--------
Windows) 98 (n) - 32-bit extensions and graphical shell
for a 16-bit patch to an 8-bit operating system
originally coded for a 4-bit microprocessor
written by a 2-bit company
that can't stand 1 bit of competition.
_______________________________________________
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.