ProtoApp Edit menu


#1

I copied the way you build your menu in proto app… and it works
except for the paste… CTRL+Drag does work in my app… but doing a
CTRL+V doesnt work even if CanPaste returns true…Is there something
different about CTRL+Drag and CTRL+V in the copying of objects?
EditPaste gets called from my menu… but the action doesnt happen since
my Undo menu doesnt get updated…


#2

Probably you have some object that isn’t serializable. Read about it in the FAQ and/or the User Guide.


#3

No all my objects are marked specifically with the serializable attribute…
I read the fact.


#4
To test your serialization: Stream ofile = File.Open("test.graph", FileMode.Create); IFormatter oformatter = new BinaryFormatter(); oformatter.Serialize(ofile, myView.Document); ofile.Close(); and to test deserializing: Stream ifile = File.Open("test.graph", FileMode.Open); IFormatter iformatter = new BinaryFormatter(); GoDocument doc = iformatter.Deserialize(ifile) as GoDocument; ifile.Close(); myView.Document = doc;