• 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: How to embed a popup menu in an NSTextField
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >How to embed a popup menu in an NSTextField (From: Larry Gerndt <email@hidden>)
 >Re: How to embed a popup menu in an NSTextField (From: stephane sudre <email@hidden>)
 >Re: How to embed a popup menu in an NSTextField (From: Robbie Haertel <email@hidden>)

  • Prev by Date: Re: Fast Screen update
  • Next by Date: Re: Access instance var from NSValueTransformer
  • Previous by thread: Re: How to embed a popup menu in an NSTextField
  • Next by thread: Re: How to embed a popup menu in an NSTextField
  • Index(es):
    • Date
    • Thread