textFieldEditor in NSBrowser
textFieldEditor in NSBrowser
- Subject: textFieldEditor in NSBrowser
- From: <email@hidden>
- Date: Tue, 13 Apr 2004 9:43:22 -0400
I want to edit cells within NSBrowser. My implementation works and I can edit
cells without a problem. But now I want to change the attributes of the
textFieldEditor used for editing, like drawing a blue border around it, kinda
like editing cells in Apple's Finder, or changing the text to another color when
being edited. I've tried the following functions:
- (void)editWithFrame:(NSRect)aRect inView:(NSView *)controlView editor:
(NSText *)textObj delegate:(id)anObject event:(NSEvent *)theEvent
I tried to access the NSText objects and tried to edit some attributes like
(void)setTextColor:(NSColor *)aColor to change the color of the font, but no
change occured.
- (NSText *)setUpFieldEditorAttributes:(NSText *)textObj
I've noticed that after calling the editWithFrame function, the function
setUpFieldEditorAttributes is called. Again I tried to change the attributes of
NSText without any success and it seems that NSBrowser ignores this NSText
object returned by this function and uses its own.
_______________________________________________
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.