Re: NSTextStorage subclassing issue in 10.4
Re: NSTextStorage subclassing issue in 10.4
- Subject: Re: NSTextStorage subclassing issue in 10.4
- From: Erik Buck <email@hidden>
- Date: Wed, 25 May 2005 13:48:48 -0700 (PDT)
How about this ?
In -endEditing, cancel an pending previous perform requests and then schedule a preform request for the future.
The scheduled perform request will be executed once after the current event is processed. e.g. (typed in mail)
- endEditing
{
[[self class] cancelPreviousPerformRequestsWithTargetself selector:
(:@selector(fixNoteAttributes:)
object:
nil];
[self performSelector:@selector(fixNoteAttributes:) withObject:nil afterDelay:0.0];
- fixNoteAttributes:(id)dummy
{
// I will only be called once per run loop pass no matter how many time -endEditing is
// called in one run loop pass
}
_______________________________________________
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