Re: Customizing an NSSearchField
Re: Customizing an NSSearchField
- Subject: Re: Customizing an NSSearchField
- From: Tim Lucas <email@hidden>
- Date: Mon, 15 Nov 2004 00:02:03 +1100
On 14/11/2004, at 12:44 PM, Tim Lucas wrote:
Create an NSView subclass that displays the icon in its drawRect and
displays a sheet containing the predefined messages on mouseDown.
Add your NSView subclass to the textview using [textView
addSubView:...].
I was actually quite wrong. There is quite a bit of work needed to add
stuff into NSTextFields or NSTextViews.
You need to at least subclass both NSTextField and NSTextFieldCell. You
may also need to provide a custom NSTextView class as a field editor.
Anybody know of a way you can do this without needing a custom field
editor?
-- tim lucas
http://www.toolmantim.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden