• 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
using NSPopUpButtonCell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

using NSPopUpButtonCell


  • Subject: using NSPopUpButtonCell
  • From: Andrew Bush <email@hidden>
  • Date: Sat, 19 Nov 2005 17:25:30 +1300

Hi all,

is there any example code showing how to use this?

I have a simple tableview that  would like to have a popup in each row.

I have added NSPopUpButtonCell to the relevant column.

Ive created an instance of NSMenu

I have set the 'menu' outlet of the NSPopUpButtonCell column to this menu.

I have set the 'delegate' outlet of the NSMenu to a controller.

I have implemented - (void)menuNeedsUpdate:(NSMenu *)menu in this controller

Another, separate, NSPopupButton uses this with no problems whenever it is clicked on.

The problem I have is that the NSPopUpButtonCell never actually calls menuNeedsUpdate on its delegate.

Is this a known bug?  have I skipped a step?

If anyone knows of some sample code showing this working I would love to see it.

Im compiling on 10.3 using XCode 1.5 , and using the cross compilation sdk to target 10.2.8


thanks for any help :)


Yours cheerfully,

	Andrew Bush

_______________________________________________
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: using NSPopUpButtonCell
      • From: Stéphane Sudre <email@hidden>
  • Prev by Date: Re: NSImageView does not update on setNeedsDisplay
  • Next by Date: adding Foundation framework to a Carbon application
  • Previous by thread: Re: addSubviews: How can I populate the first tier of the Container View only?
  • Next by thread: Re: using NSPopUpButtonCell
  • Index(es):
    • Date
    • Thread