Merge pull request #31 from CKegel/master

Patch NSMenuItem implementation
This commit is contained in:
Ariel Abreu 2023-10-16 14:26:26 -04:00 committed by GitHub
commit 9a223835e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"];
}