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

Re: Deselect TextFields


  • Subject: Re: Deselect TextFields
  • From: j o a r <email@hidden>
  • Date: Fri, 4 Apr 2003 12:42:45 +0200

Try to end editing first:

- (void) reallyEndAndDisallowEditing
{
if (![myWindow makeFirstResponder: myWindow])
{
[myWindow endEditingFor: nil];
}

[myTextField setEditable: NO];
[myTextField setSelectable: NO];
}

j o a r

On Friday, Apr 4, 2003, at 12:26 Europe/Stockholm, Lorenzo wrote:

how to deselect the NSTextFields?

The users writes inside a NSTextFields then I call

[theField setEditable:NO];
[theField setSelectable:NO];

but the field borders are still blue,
the text-beam is still blinking and I can write inside the field.

So, how to close the field in order to don't let the user write inside it
and in order to don't see the borders blue?
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Deselect TextFields
      • From: Lorenzo <email@hidden>
References: 
 >Deselect TextFields (From: Lorenzo <email@hidden>)

  • Prev by Date: Re: takeValue:forKey and BOOL
  • Next by Date: Re: takeValue:forKey and BOOL
  • Previous by thread: Deselect TextFields
  • Next by thread: Re: Deselect TextFields
  • Index(es):
    • Date
    • Thread