• 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
NSTextView scroll to attribute/bookmark?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSTextView scroll to attribute/bookmark?


  • Subject: NSTextView scroll to attribute/bookmark?
  • From: Samuel Williams <email@hidden>
  • Date: Sun, 24 Aug 2014 18:05:18 +1200

Hi

I'm generating a NSAttributedString which looks like the following:

function_name_1
disassembled code output
disassembled code output
disassembled code output
function_name_2
disassembled code output
disassembled code output
function_name_3
disassembled code output
disassembled code output
disassembled code output
disassembled code output

I am assigning a special attribute to the function_name_x headers. I want
to have a drop down box, not unlike the Xcode editor, where you can see a
list of functions and jump to them quickly.

What is the best way to achieve this functionality?

1/ Somehow scan through the list of attributes and find the one which
should be focused, calling scroll to range

2/ Separate data structure

????

Thanks for any feedback. If possible, if you know some specific functions I
should use please suggest them (e.g. finding all ranges for a given
attribute on NSAttributedString??).

Kind regards,
Samuel
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: NSTextView scroll to attribute/bookmark?
      • From: Ken Thomases <email@hidden>
  • Prev by Date: Re: Swift Threads
  • Next by Date: Re: NSTextView scroll to attribute/bookmark?
  • Previous by thread: Re: Which NSWindow methods have asynchronous operation?
  • Next by thread: Re: NSTextView scroll to attribute/bookmark?
  • Index(es):
    • Date
    • Thread