Re: NSTabView and edit fields
Re: NSTabView and edit fields
- Subject: Re: NSTabView and edit fields
- From: Ricky Sharp <email@hidden>
- Date: Tue, 01 Aug 2006 11:22:25 -0500
On Tuesday, August 01, 2006, at 10:15AM, Matt Neuburg <email@hidden> wrote:
>(2) the problem you're describing (the field has apparent focus but typing
>does nothing) is easily solved by using delayed performance:
>
>- (void) doIt: (id) dummy {
> [myTabView selectTabViewItemAtIndex:1];
>}
>
>- (IBAction)goToSecondTab:(id)sender {
> [myTextField setStringValue:@""];
> [self performSelector:@selector(doIt:) withObject:nil afterDelay:0.1];
>}
Just be careful when employing solutions such as this. I used to have something similar to delay the start of speech synthesis when users entered a particular screen in my kiosk. However, my automated testing framework could exit the screen before the selector would be called. I believe in my case it caused a crash.
I would definitely look for other solutions and use this one as a last resort.
--
Rick Sharp
Instant Interactive(tm)
_______________________________________________
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