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

Re: Using a NSTextField inside a NSMenuItem?


  • Subject: Re: Using a NSTextField inside a NSMenuItem?
  • From: "email@hidden" <email@hidden>
  • Date: Wed, 10 Mar 2010 10:08:41 +0000

On 10 Mar 2010, at 01:01, Robert Monaghan wrote:

> 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?
>
This is a non standard menu configuration.
You may not have a field editor available to handle the NSTextField text processing.

Regards

Jonathan Mitchell

Developer
http://www.mugginsoft.com
> 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

_______________________________________________

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

References: 
 >Using a NSTextField inside a NSMenuItem? (From: Robert Monaghan <email@hidden>)

  • Prev by Date: [Meet] Amsterdam CocoaHeads
  • Next by Date: Re: Bison/Yacc with Objective-C ?
  • Previous by thread: Using a NSTextField inside a NSMenuItem?
  • Next by thread: Cocoaheads Lake Forest (92630) meeting TOMORROW, Wed 3/10/2010 at 7 pm on Highlights of the 2010 Stanford iPhone development class
  • Index(es):
    • Date
    • Thread