• 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: Formatters and TextViews
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Formatters and TextViews


  • Subject: Re: Formatters and TextViews
  • From: Rob Rix <email@hidden>
  • Date: Mon, 10 Sep 2001 17:58:31 -0400

The value for the link attribute can be whatever you choose to represent what the link points to. For example, for hypertext links, you might wish to use an NSURL. If you are linking to something specific to your app, you probably will want to use a custom class. Whatever it is, it will be sent to the text view's delegate as the "link" in the delegate's textView:clickedOnLink:atIndex: method.

Ah, okay, excellent. Thanks again!

For hypertext links, I'll use NSURL, and for my own links, I'll link to an entry in a dictionary my document class manages.

Thanks again, Douglas, this is excellent!

-- Rob

Witticism forthcoming.


References: 
 >Re: Formatters and TextViews (From: Douglas Davidson <email@hidden>)

  • Prev by Date: Simple File Transfer
  • Next by Date: Re: Mac OS X 10.1 File Name Extension Guidelines
  • Previous by thread: Re: Formatters and TextViews
  • Next by thread: Re: Mac OS X 10.1 File Name Extension Guidelines [Fairly Long]
  • Index(es):
    • Date
    • Thread