Re: textfield problem
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