• 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: refreshing the header title for an NSTableColumn
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: refreshing the header title for an NSTableColumn


  • Subject: Re: refreshing the header title for an NSTableColumn
  • From: Conor Dearden <email@hidden>
  • Date: Thu, 10 Nov 2005 10:22:22 +0100

> looking for ways to monitor text entered into a textfield

First of all I believe your talking about an NSTextView and not an
NSTextField; either way, I suggest you use the delegate method:

- (BOOL)textView:(NSTextView *)aTextView
shouldChangeTextInRange:(NSRange)affectedCharRange
replacementString:(NSString *)replacementString

In this method you could simply look for a "]" if present search back for
the matching bracket and see if the text matches anything. And make your
changes.

There is a better version of this method but it's Tiger only.

You could even get fancy and start auto-completing the forward bracket with:

- (NSArray *)textView:(NSTextView *)textView completions:(NSArray *)words
forPartialWordRange:(NSRange)charRange indexOfSelectedItem:(int *)index

Conor Dearden
http://www.bruji.com/



 _______________________________________________
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

  • Prev by Date: Re: NSThread call back...
  • Next by Date: makeWindowControllers and memory leaks
  • Previous by thread: Re: refreshing the header title for an NSTableColumn
  • Next by thread: Re: refreshing the header title for an NSTableColumn
  • Index(es):
    • Date
    • Thread