Re: Insert Picture in TextView
Re: Insert Picture in TextView
- Subject: Re: Insert Picture in TextView
- From: Shawn Erickson <email@hidden>
- Date: Sun, 2 Jun 2002 08:52:42 -0700
Look over...
<
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
Misc/TextHandlingPage.html>
In particular...
<
http://developer.apple.com/techpubs/macosx/Cocoa/TasksAndConcepts/ProgrammingTopics/
TextAttachments/index.html>
and consider...
NSText -replaceCharactersInRange:withRTFD:
-Shawn
On Sunday, June 2, 2002, at 06:12 AM, Albert Atkinson wrote:
Hello!
I have looked all over the cocoa documentation and can not find what I
am looking for. I would like to hook up a button so that when the user
clicks it then the action will place a picture in a text view called
"icon2" (which is in the project).
I got it to insert text by calling
[messageText insertText: @"[SM:10]"];
but I can not figure out how to insert my graphic. Any ideas?
Thanks!
Albert
_______________________________________________
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.