On Mar 2, 2012, at 2:35 PM, 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?

Is the text field configured with Refuses First Responder?

Does the panel have a title bar or resize indicator -- not when it's running as 
a sheet, but in its style mask?  See the documentation for -[NSWindow 
canBecomeKeyWindow].

Is the window to which the sheet is attached able to become key?  (I actually 
don't know what happens if you run a sheet which can become key on a window 
which can't.)

Is anything written to console when the panel is loaded or when you attempt to 
start editing in the text field?

Does the text field have bindings?  Are they configured with Conditionally Sets 
Editable or Conditionally Sets Enabled?  (The former is on by default, which is 
often annoying.)

Regards,
Ken


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to