Subview not registered for undo&save by default (why ?)

  • Hello all,

      I have an NSDocument subclass that owns a nib with a main view containing
    many sub (text) views. As is normal, the NSDocument subclass automatically
    keeps track carefully
    of all changes made in those subviews for undo&save purposes -actually, for
    all subviews except one baffling exception. For this subview, when I make
    changes
    in it the document does not mark itself automatically dirty (and therefore
    forgets
    to take those changes into account on closing if no other modification of
    the document is made. If another subview is modified or if the user forces
    a save,
    however, everything is saved).

    Reviewing my code I cannot see why this particular subview is treated
    differently : like all the other subviews, I create it, make it a subview
    of the main
    view, set its delegate to be the NSDocument subclass, etc.

                Any ideas ?

                                                                                                    Ewan
previous month november 2007 next month
MTWTFSS
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    
Go to today