mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 07:10:46 +00:00
Fixed GMappKit NSMenu decoding.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@4575 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
bf4db87fb3
commit
d3e6579cfe
3 changed files with 11 additions and 7 deletions
|
@ -3,6 +3,9 @@
|
|||
* Source/NSMenu.m: added code to convert anything that conforms to
|
||||
<NSMenuItem> into an NSMenuItemCell. Not tested, but should work.
|
||||
Also fixed a small bug in -init, it was not returning.
|
||||
* Model/GMAppKit.m: fixed code in unarchiving of NSMenus to
|
||||
addItems so they are converted rather than swapped in (in an
|
||||
operation which we can not intercede.)
|
||||
|
||||
Mon Jul 12 5:40:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
|
||||
|
||||
|
|
|
@ -750,10 +750,11 @@ void __dummy_GMAppKit_functionForLinking() {}
|
|||
= [unarchiver decodeObjectWithName:@"itemArray"];
|
||||
|
||||
for (i = 0, count = [decodedItems count]; i < count; i++)
|
||||
[self addItemWithTitle:@"dummy" action:NULL keyEquivalent:@""];
|
||||
[self addItem:[decodedItems objectAtIndex:i]];
|
||||
// [self addItemWithTitle:@"dummy" action:NULL keyEquivalent:@""];
|
||||
|
||||
[itemArray replaceObjectsInRange:NSMakeRange(0, count)
|
||||
withObjectsFromArray:decodedItems];
|
||||
// [itemArray replaceObjectsInRange:NSMakeRange(0, count)
|
||||
// withObjectsFromArray:decodedItems];
|
||||
|
||||
for (i = 0; i < count; i++) {
|
||||
id item = [itemArray objectAtIndex:i];
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
isVisible = NO;
|
||||
isa = NSWindow;
|
||||
level = 0;
|
||||
maxSize = "{width = 3.40282e+38; height = 3.40282e+38}";
|
||||
maxSize = "{width = 16000.0; height = 16000.0}";
|
||||
minSize = "{width = 0; height = 0}";
|
||||
representedFilename = "";
|
||||
styleMask = 0;
|
||||
|
@ -70,7 +70,7 @@
|
|||
isVisible = NO;
|
||||
isa = NSWindow;
|
||||
level = 0;
|
||||
maxSize = "{width = 3.40282e+38; height = 3.40282e+38}";
|
||||
maxSize = "{width = 16000.0; height = 16000.0}";
|
||||
minSize = "{width = 0; height = 0}";
|
||||
representedFilename = "";
|
||||
styleMask = 0;
|
||||
|
@ -100,7 +100,7 @@
|
|||
isVisible = YES;
|
||||
isa = NSWindow;
|
||||
level = 0;
|
||||
maxSize = "{width = 3.40282e+38; height = 3.40282e+38}";
|
||||
maxSize = "{width = 16000.0; height = 16000.0}";
|
||||
minSize = "{width = 0; height = 0}";
|
||||
representedFilename = "";
|
||||
styleMask = 14;
|
||||
|
@ -468,7 +468,7 @@
|
|||
isVisible = NO;
|
||||
isa = NSWindow;
|
||||
level = 0;
|
||||
maxSize = "{width = 3.40282e+38; height = 3.40282e+38}";
|
||||
maxSize = "{width = 16000.0; height = 16000.0}";
|
||||
minSize = "{width = 0; height = 0}";
|
||||
representedFilename = "";
|
||||
styleMask = 14;
|
||||
|
|
Loading…
Reference in a new issue