Re: Calling undo programatically

2009-05-13 Thread Ryan Joseph
On May 14, 2009, at 12:48 PM, Graham Cox wrote: On 14/05/2009, at 3:37 PM, Ryan Joseph wrote: Great, thanks! That leads me to consider the real problem, do I need to create an undo manager manually if I create the NSTextView without initWithFrame:? I bet that's the problem... Thanks. H

Re: Calling undo programatically

2009-05-13 Thread Graham Cox
On 14/05/2009, at 3:37 PM, Ryan Joseph wrote: Great, thanks! That leads me to consider the real problem, do I need to create an undo manager manually if I create the NSTextView without initWithFrame:? I bet that's the problem... Thanks. How did you create it then? -initWithFrame: is the r

Re: Calling undo programatically

2009-05-13 Thread Ryan Joseph
On May 14, 2009, at 12:29 PM, Graham Cox wrote: On 14/05/2009, at 3:25 PM, Ryan Joseph wrote: I have a NSTextView I have assembled programatically and placed it into a HICocoaView being used in a Carbon window. All the commands work except undo (called setAllowsUndo already) so I would li

Re: Calling undo programatically

2009-05-13 Thread Graham Cox
On 14/05/2009, at 3:25 PM, Ryan Joseph wrote: I have a NSTextView I have assembled programatically and placed it into a HICocoaView being used in a Carbon window. All the commands work except undo (called setAllowsUndo already) so I would like to call undo programatically to test in order

Calling undo programatically

2009-05-13 Thread Ryan Joseph
I have a NSTextView I have assembled programatically and placed it into a HICocoaView being used in a Carbon window. All the commands work except undo (called setAllowsUndo already) so I would like to call undo programatically to test in order to determine if Carbon is messing this up or it