• 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: Custom TextField/fieldEditor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Custom TextField/fieldEditor


  • Subject: Re: Custom TextField/fieldEditor
  • From: "Mark's Studio" <email@hidden>
  • Date: Mon, 29 Apr 2002 11:58:22 +0200

Thanks for your reply

i have tried

- (BOOL) becomeFirstResponder
{
NSLog(@"becomeFirstResponder");
[self selectText:self];

return YES;
// return [super isSelectable];
}

but nothing happens to the selection
i think the fieldEditor is taking over just after becomeFirstResponder
and that has a different selection when it's the mouse that makes it
first responder
but if i use mouseDown that's after becomeFirstResponder
the selectAll must be going to the fieldEditor and that's why it works?

2. i get all the keyUp but i does look funny if i use it.

Does anyone know if there is an example of how to make your own custom
fieldEditor cause i think thats what i need?



On mandag, april 29, 2002, at 12:32 , Andy Lee wrote:

> At 10:49 PM +0200 4/28/02, email@hidden wrote:
>> On dimanche, avril 28, 2002, at 10:30 , Mark's Studio wrote:
>>> and it works but i get this
>>> [PMTextField selectAll:]: selector not recognized.
>>
>> SelectAll does not exist in the documentation AFAIK, selectText: is.
>>
>
> MTLibrarian to the rescue: -selectAll: is declared in a category of
> NSResponder, but NSResponder does not implement it, nor do all
> subclasses.
>
> NSTextView does have a -selectAll: method (by way of NSText), but not
> NSTextField. I wonder if this was a typo by somebody at Apple, and
> they really meant -selectAll: instead of -selectText: for NSTextField.
>
> --Andy
> _______________________________________________
> 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.
>
>
Peter Mark

Mark's Recording Studio A/S
Faelledvej 19 b DK2200 N
Copenhagen Denmark
Tel: +45 35366078 Fax: +45 35366038
www.marks-studio.dk
email@hidden
_______________________________________________
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.

References: 
 >Re: Custom TextField/fieldEditor (From: Andy Lee <email@hidden>)

  • Prev by Date: Re(2): Socket Connections
  • Next by Date: Re: Socket Connections
  • Previous by thread: Re: Custom TextField/fieldEditor
  • Next by thread: Re: Custom TextField/fieldEditor
  • Index(es):
    • Date
    • Thread