• 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: textfield problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: textfield problem


  • Subject: Re: textfield problem
  • From: Quincey Morris <email@hidden>
  • Date: Fri, 02 Mar 2012 17:05:06 -0800

On Mar 2, 2012, at 12:35 , H. Miersch wrote:

> i have a problem with a text field that won't accept any input. the textfield is one of three on a panel that appears only when the input is needed. I activate the panel with this line:    [app beginSheet:Sheet modalForWindow:mainWindow modalDelegate:self didEndSelector:NULL contextInfo:nil];
>
> in IB, behavior is set to editable, state is enabled. i've tried deleting the textfield and replacing it with a new one, i've tried [textfield setEditable:YES], but no joy. the textfield stubbornly refuses to accept any input. when i click it, nothing happens. when i double-click it, any existing characters are highlighted in grey instead of blue, and if i type anything, that input goes to whatever was active before the double-click. i'm obviously doing something wrong, but i have no idea what. can anyone point me in the right direction?

Did you use a NSPanel for the sheet? Use a NSWindow instead, since NSPanels can have special first-responder behavior.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: textfield problem
      • From: "H. Miersch" <email@hidden>
References: 
 >textfield problem (From: "H. Miersch" <email@hidden>)

  • Prev by Date: Re: textfield problem
  • Next by Date: Re: iOS UI control type terminology/name question
  • Previous by thread: Re: textfield problem
  • Next by thread: Re: textfield problem
  • Index(es):
    • Date
    • Thread