file path of a MenuItem target with cmdOpen action
Posted
by maranas
on Stack Overflow
See other posts from Stack Overflow
or by maranas
Published on 2010-03-29T11:59:43Z
Indexed on
2010/03/29
12:03 UTC
Read the original article
Hit count: 375
I am trying to acquire the file path of an item within the NSMenuItem object. Using [objectname action] i am able to properly acquire the action (cmdOpen). But [objectname target] returns a null value. According to the documentation in the apple developer website, if the value is null, the action is sent to the first-responder. I want to be able to dynamically access the file path of the target file. Is there a way to do this without changing the program design?
© Stack Overflow or respective owner