• 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
Identifying what symbol you're in
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Identifying what symbol you're in


  • Subject: Identifying what symbol you're in
  • From: Francisco Tolmasky <email@hidden>
  • Date: Tue, 09 Sep 2003 11:40:01 -0700

Ok, you know when you put you mouse somewhere Project Builder changes the symbol pop up menu to reflect what symbol you are "in". I'm wondering how you guys think they do that. Do they maintain a costly document structure somewhere where they can do the lookup, or do you think they just parse from the top to the bottom and identify what symbol you are inhabiting, possibly being more efficient by only looking locally and expanding the search out only if necessary (reverse search).

Similarly, do they do the same when finding all the symbols to put in the pop up (i.e. every time text is added they reparse the whole thing). It would almost seem like they have a threaded function that does this since if you are working on a symbol, such as:

- (void)someth

"-someth" shows up in the pop up menu. If continue to type:

- (void)something

A little later "-someth" is replaced with "-something". Is this time gap do to a slow function, or the use of a periodic syntax analyzer that is called every so often?


Francisco Tolmasky
email@hidden
http://users.adelphia.net/~ftolmasky
_______________________________________________
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.

  • Prev by Date: Re: "Default" button is not accepting returns
  • Next by Date: Re: MiscKit
  • Previous by thread: Re: "Default" button is not accepting returns
  • Next by thread: replaceOccurrencesOfString not recognized?
  • Index(es):
    • Date
    • Thread