• 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: Insert Picture in TextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Insert Picture in TextView (From: Albert Atkinson <email@hidden>)

  • Prev by Date: How to put an icon in the menu bar?
  • Next by Date: Re: How to put an icon in the menu bar?
  • Previous by thread: Insert Picture in TextView
  • Next by thread: Re: Insert Picture in TextView
  • Index(es):
    • Date
    • Thread