Re: How to embed a popup menu in an NSTextField
Re: How to embed a popup menu in an NSTextField
- Subject: Re: How to embed a popup menu in an NSTextField
- From: Ryan Stevens <email@hidden>
- Date: Mon, 15 Nov 2004 09:17:43 -0800
On Nov 15, 2004, at 5:21 AM, Robbie Haertel wrote:
I haven't ever done it myself, but I think the best way would be to
subclass NSCell so that it consists of an NSTextFieldCell and an
NSPopupButtonCell. Then you can call setCell: on an instance of your
NSTextField, I believe (you may have to subclass, I'm not sure).
There have been a lot of posts and questions about how to combine an
image and text in NSTableView so there is plenty of code in the
archives, and even an example in the /Developer folder.
I have done this and posted working code on-list. Not prefect but I'm
working on fixing it up so I can post it on CocoaDev without feeling
too bad.
What hasn't been mentioned yet is that you could probably customize
NSSearchField/Cell and be up and running in 10 minutes.
_______________________________________________
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