Using a NSTextField inside a NSMenuItem?
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