• 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: NSTabView and edit fields
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Re: NSTabView and edit fields (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Re: Copying large files with progress indicator
  • Next by Date: Why multiple calls to an IB palette inspector's 'revert' method?
  • Previous by thread: Re: NSTabView and edit fields
  • Next by thread: Re: NSTabView and edit fields
  • Index(es):
    • Date
    • Thread