• 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 a NSTextField inside a NSMenuItem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Using a NSTextField inside a NSMenuItem?


  • Subject: Using a NSTextField inside a NSMenuItem?
  • From: Robert Monaghan <email@hidden>
  • Date: Tue, 9 Mar 2010 17:01:31 -0800

Hi Everyone,

Another Question:
How does one make a NSTextField work inside an NSMenuItem? (For 10.5/10.6)

I can place the NSTextField into a View that I've created in a NIB file, and have added it to the NSMenuItem
using setView:
It shows up perfectly, and I can pre-populate the text field using a setStringValue call.

However, NSControlTextDidEndEditingNotification (as well as the other NSTextField notifications) do not work,
nor can I get any results back from the user. Doing a stringValue on the Textfield only returns the original data
from the setStringValue call that I did when I attached the view to the NSMenuItem.

What am I missing?

Thanks!

bob.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Using a NSTextField inside a NSMenuItem?
      • From: "email@hidden" <email@hidden>
  • Prev by Date: Core Data & Spotlight: Record-Level Indexing : Issues?
  • Next by Date: Re: Bison/Yacc with Objective-C ?
  • Previous by thread: re: Core Data & Spotlight: Record-Level Indexing : Issues?
  • Next by thread: Re: Using a NSTextField inside a NSMenuItem?
  • Index(es):
    • Date
    • Thread