Re: refreshing the header title for an NSTableColumn
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