mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-26 21:40:44 +00:00
Merge pull request #31 from CKegel/master
Patch NSMenuItem implementation
This commit is contained in:
commit
9a223835e7
@ -40,12 +40,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||
}
|
||||
|
||||
- (void) encodeWithCoder: (NSCoder *) coder {
|
||||
[coder encodeObject: _title forKey: @"NSMenuItem title"];
|
||||
[coder encodeObject: _keyEquivalent forKey: @"NSMenuItem keyEquivalent"];
|
||||
[coder encodeObject: _title forKey: @"NSTitle"];
|
||||
[coder encodeObject: _keyEquivalent forKey: @"NSKeyEquiv"];
|
||||
[coder encodeInt: _keyEquivalentModifierMask
|
||||
forKey: @"NSMenuItem keyEquivalentModifierMask"];
|
||||
[coder encodeObject: _submenu forKey: @"NSMenuItem submenu"];
|
||||
[coder encodeInt: _tag forKey: @"NSMenuItem tag"];
|
||||
forKey: @"NSKeyEquivModMask"];
|
||||
[coder encodeObject: _submenu forKey: @"NSSubmenu"];
|
||||
[coder encodeInt: _tag forKey: @"NSTag"];
|
||||
[coder encodeObject: NSStringFromSelector(_action) forKey: @"NSAction"];
|
||||
[coder encodeObject: _target forKey: @"NSTarget"];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user