• 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 implement iChat's smiley popup in the text entry field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement iChat's smiley popup in the text entry field


  • Subject: Re: How to implement iChat's smiley popup in the text entry field
  • From: Daniel Todd Currie <email@hidden>
  • Date: Fri, 12 Nov 2004 17:34:10 -0800

If you want it to look exactly the same, you have some work cut out for you...

The way I would approach this functionality is with a borderless pulldown NSPopUpButton that uses the TextAndImageCell class from "/Developer/Examples/AppKit/DragNDropOutlineView/" for its menu items. I think menus use cells, but I'm not certain; someone else can correct me on this one.

Otherwise, you're going to have to create a bunch of custom classes to deal with the presentation of the popup view, mouse-overs, selection bezels... ugh. Apple probably has their own APIs for some of this stuff, so it's easier for them, but it's a lot of work for the rest of us.

-- DTC

-----------------------------------------------
DANIEL TODD CURRIE - Founder/Programmer
Line of Sight Software, http://los.dtcurrie.net


On 2004 Nov 12, at 15:36, Larry Gerndt wrote:

I would like to implement a popup menu located in the right end of an NSTextField just like iChat has for picking a smiley face.  Since I'm new to Cocoa, I'm not sure how to go about this, and would appreciate a pointer on the right way to do this.
-- Larry Gerndt



AIM Handle: SonOfTheSonOfMan

Let the truth be told though the heavens fall -- James Garrison
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden


This email sent to email@hidden
_______________________________________________
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 implement iChat's smiley popup in the text entry field
      • From: daniel <email@hidden>
    • Re: How to implement iChat's smiley popup in the text entry field
      • From: Larry Gerndt <email@hidden>
References: 
 >How to implement iChat's smiley popup in the text entry field (From: Larry Gerndt <email@hidden>)

  • Prev by Date: Re: Cocoa NSView in a carbon window
  • Next by Date: Convert NSEvent to EventRef
  • Previous by thread: How to implement iChat's smiley popup in the text entry field
  • Next by thread: Re: How to implement iChat's smiley popup in the text entry field
  • Index(es):
    • Date
    • Thread