• 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: stephane sudre <email@hidden>
  • Date: Mon, 15 Nov 2004 10:31:19 +0100


On Nov 15, 2004, at 8:09 AM, Larry Gerndt wrote:

(This is a revised version of my original post from a few days ago)

I would like to implement a popup menu located in the bottom-right corner an NSTextField (just like iChat has for picking a smiley face, except my menu will be a normal menu of strings).  Since I'm new to Cocoa, I'm not sure how to go about accomplishing this.

I've gotten some helpful ideas, like trying an NSTextAttachment, which was very interesting, but I couldn't get that work well and to me, it seems like the wrong approach.  I know that the Charla project has a way of doing this, and I may have to resort to that, but it would seem to me that some the Cocoa experts out there would know the best approach and I would appreciate very much to hear what that would be.  Thanks, and sorry to repost.
--
Larry Gerndt

Subclass NSTextField and implement a mouseDown: method?

This way you can specify which zone will po-up the menu and call the super method for the rest of the control.


_______________________________________________ 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
  • Follow-Ups:
    • Re: How to embed a popup menu in an NSTextField
      • From: Robbie Haertel <email@hidden>
References: 
 >How to embed a popup menu in an NSTextField (From: Larry Gerndt <email@hidden>)

  • Prev by Date: Re: Trouble comparing NSCalendarDates
  • Next by Date: Re: link flag in XCode?
  • Previous by thread: 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