FROM : Seth Willits
DATE : Mon Dec 20 21:43:05 2004
On Dec 20, 2004, at 12:36 AM, Thomas Lachand-Robert wrote:
> I don't see where there is a NSTextView in a NSTextField. I will try
> to hook it directly in the field editor in code. For the NSBox, thanks
> for the tip: that would explain why it doesn't work for me, since my
> box has no title. I don't understand why it doesn't work for the
> background of the box, though?
Whoops. Sorry. I didn't realize that it was NSTextField. I guess since
I've been using NSTextView's so much lately that that's what I thought
it said. But you're right, it doesn't show up in an NSTextField. I've
tried connecting it in the nib, setting it in code ([field
setMenu:menu]) and setting the field's cell's menu ([[field cell]
setMenu:menu]) and none of those worked. I'm pretty much stumped there.
As for the box, I think the background of the view has to be a certain
opacity or something. I could be way off, but you could try overriding
the menuForEvent method or maybe the mouseDown if it still doesn't
work.
-- Seth Willits
DATE : Mon Dec 20 21:43:05 2004
On Dec 20, 2004, at 12:36 AM, Thomas Lachand-Robert wrote:
> I don't see where there is a NSTextView in a NSTextField. I will try
> to hook it directly in the field editor in code. For the NSBox, thanks
> for the tip: that would explain why it doesn't work for me, since my
> box has no title. I don't understand why it doesn't work for the
> background of the box, though?
Whoops. Sorry. I didn't realize that it was NSTextField. I guess since
I've been using NSTextView's so much lately that that's what I thought
it said. But you're right, it doesn't show up in an NSTextField. I've
tried connecting it in the nib, setting it in code ([field
setMenu:menu]) and setting the field's cell's menu ([[field cell]
setMenu:menu]) and none of those worked. I'm pretty much stumped there.
As for the box, I think the background of the view has to be a certain
opacity or something. I could be way off, but you could try overriding
the menuForEvent method or maybe the mouseDown if it still doesn't
work.
-- Seth Willits
| Related mails | Author | Date |
|---|---|---|
| Thomas Lachand-Rob… | Dec 19, 21:39 | |
| Seth Willits | Dec 19, 21:45 | |
| Thomas Lachand-Rob… | Dec 19, 22:16 | |
| Douglas Davidson | Dec 19, 22:26 | |
| Seth Willits | Dec 20, 05:36 | |
| Thomas Lachand-Rob… | Dec 20, 09:36 | |
| Seth Willits | Dec 20, 21:43 |






Cocoa mail archive

