FROM : Benjámin Salánki
DATE : Thu Aug 31 23:40:02 2006
Yeah, I was afraid this was the answer. Anyway, I found a way in my
project that works good and I don't have to mess with the menus.
Thanks for helping though.
Ben
On Aug 31, 2006, at 10:35 PM, j o a r wrote:
>
> On 31 aug 2006, at 20.08, Benjámin Salánki wrote:
>
>> I need to be able to decide what NSView item a given menu was set
>> as a menu using setMenu:. i.e. once i choose a menu item the
>> action it performs should be able differentiate between the source
>> items them menu was displayed from.
>
> You would have to set this information in the menu item (for
> example via setRepresentedObject:, or setTag:) as the menu is
> created. I don't think you can figure it out once it's opened.
>
> j o a r
>
>
DATE : Thu Aug 31 23:40:02 2006
Yeah, I was afraid this was the answer. Anyway, I found a way in my
project that works good and I don't have to mess with the menus.
Thanks for helping though.
Ben
On Aug 31, 2006, at 10:35 PM, j o a r wrote:
>
> On 31 aug 2006, at 20.08, Benjámin Salánki wrote:
>
>> I need to be able to decide what NSView item a given menu was set
>> as a menu using setMenu:. i.e. once i choose a menu item the
>> action it performs should be able differentiate between the source
>> items them menu was displayed from.
>
> You would have to set this information in the menu item (for
> example via setRepresentedObject:, or setTag:) as the menu is
> created. I don't think you can figure it out once it's opened.
>
> j o a r
>
>
| Related mails | Author | Date |
|---|---|---|
| Benjámin Salánki | Aug 31, 20:08 | |
| j o a r | Aug 31, 22:35 | |
| Benjámin Salánki | Aug 31, 23:40 |






Cocoa mail archive

