• 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
looking for ways to monitor text entered into a textfield
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

looking for ways to monitor text entered into a textfield


  • Subject: looking for ways to monitor text entered into a textfield
  • From: Mark Aufflick <email@hidden>
  • Date: Thu, 10 Nov 2005 15:47:50 +1100

I am playing with an idea for a new style of outliner type program. One of the things I want to do is interpret tags and links as they are entered into the text much like a wiki.

so let's say you entered the following text into a node (starting with the main node):

The lazy fox jumped over the [fluffy lambs]

then there would be a node titled "fluffy lambs" automatically created as a child of the current node.

That's a big simplification of the idea, but it's where i'm starting for a prototype.

I have looked at subclassing the container holding the text view and monitoring all events to track the key events. Anything that introduced or deleted a ] character would trigger a search for it's matching [. This approach has lots of limitations to work around and I am really hoping that there is some smart feature of a cocoa text class that will notify me when an edit causes a pattern to be matched.

If anyone has any great ideas about how to accomplish something along these lines in Cocoa I would really appreciate it!

Cheers,

/Mark

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: looking for ways to monitor text entered into a textfield
      • From: Nicko van Someren <email@hidden>
  • Prev by Date: CGSessionCopyCurrentDictionary
  • Next by Date: refreshing the header title for an NSTableColumn
  • Previous by thread: Re: CGSessionCopyCurrentDictionary
  • Next by thread: Re: looking for ways to monitor text entered into a textfield
  • Index(es):
    • Date
    • Thread