• 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: OK, but what do 'attributes' look like?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OK, but what do 'attributes' look like?


  • Subject: Re: OK, but what do 'attributes' look like?
  • From: Glenn Andreas <email@hidden>
  • Date: Tue, 9 Mar 2004 16:48:57 -0600

At 3:00 PM -0700 3/9/04, Mel Walker wrote:
On Mar 9, 2004, at 2:10 PM, email@hidden wrote:

there are other situations. For example, you might keep your own data
attached to that that you can detect when you're using a selection
containing that information (I've done something similar, in that text
was attached to ranges of text in the selection as additional
information.

Can you provide a "such as" for this? I'm wracking my brain trying to think of what extra info might be attached.

One could create an arbitrary "marker" on a chunk of text (which can then be navigated with a popup menu). Those markers would stay, then with the text as it is edited.

One can store information for a debugger such as a breakpoint (and that way, if the code is edited, the breakpoint is moved automatically and kept with the source - delete that chunk of source, and it's gone).

One could create a "template" of some text with areas to be replaced (think like the something that shows the parameter list for a function call), and then provides a command sequence to "go to next template field" (which then finds the next chunk of text with the template attribute).

(I've actually done all of these, so these are more than just hypothetical).

--
Glenn Andreas email@hidden mondo blobbo, Cythera, Theldrow, oh my!
Mad, Bad, and Dangerous to Know
_______________________________________________
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: 
 >Re: OK, but what do 'attributes' look like? (From: Mel Walker <email@hidden>)

  • Prev by Date: How to update or redraw NSMenuItem while it is being displayed
  • Next by Date: Re: NSDocument Deferred loading
  • Previous by thread: Re: OK, but what do 'attributes' look like?
  • Next by thread: NSArrayController causes NSRangeException when removing all objects
  • Index(es):
    • Date
    • Thread