Re: setting myself as fieldeditor's delegate?
Re: setting myself as fieldeditor's delegate?
- Subject: Re: setting myself as fieldeditor's delegate?
- From: "Sven A.Schmidt" <email@hidden>
- Date: Mon, 17 Mar 2003 12:38:29 +0100
I once had a problem with a field editor: there was an additional
superview in the hierarchy that prevented my code from working.
Below you see that I'm messaging superview twice to get from the field
editor to the text field. Could this be related to your problem? Maybe
you're making "self" delegate of the wrong view.
- (void)controlTextDidChange:(NSNotification *)aNotification {
id ed = [ [ aNotification userInfo ] objectForKey: @"NSFieldEditor"
];
if ( [[ed superview] superview] == infoTextField ) {
...
}
}
Sven
On Montag, Mdrz 17, 2003, at 09:12 Uhr, Seth Delackner wrote:
I want all text fields in a window to select all of their text
whenever the user clicks with the mouse. I read the archives, and it
being a bit late I am just getting frustrated. In awakeFromNib I > have:
NSWindow* w = [field1 window];
[[w fieldEditor:YES forObject:field1] setDelegate: self];
Just doesn't work. My delegate methods are never called. I don't get
it. The fieldEditor is shared for the whole window, so why doesn't
setting it's delegate do anything?
_______________________________________________
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.
--
Dr. Sven A. Schmidt
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.