[Pyobjc-dev] [ pyobjc-Bugs-678759 ] Subclassing NSUndoManager fails
Brought to you by:
ronaldoussoren
From: SourceForge.net <no...@so...> - 2003-02-01 19:10:28
|
Bugs item #678759, was opened at 2003-02-01 11:16 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=678759&group_id=14534 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: David Eppstein (eppstein) Assigned to: Nobody/Anonymous (nobody) Summary: Subclassing NSUndoManager fails Initial Comment: I attempted to create a python subclass of NSUndoManager, and set it as my document's undoManager with doc.setUndoManager_(MyUndoManager.alloc().init()) However, the new manager fails to work -- whenever I try running prepareWithInvocationTarget_(target).someMethod() I get AttributeError: No selector someMethod Changing MyUndoManager to NSUndoManager in the setUndoManager_ call causes the AttributeError to go away. My subclass is not shadowing prepareWithInvocationTarget_ nor any related method of NSUndoManager (I wanted merely to change the behavior of the undo() and redo() calls). Is prepareWithInvocationTarget_ doing some magic that needs to be propagated to subclasses? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=114534&aid=678759&group_id=14534 |