mirror of
https://github.com/darlinghq/darling-cocotron.git
synced 2024-11-23 12:09:51 +00:00
Use correct key values in NSMenuItem encodeWithCoder:
implementation
This commit is contained in:
parent
80e61187d4
commit
410d10de2a
@ -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