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 like to call undo programatically to test in order to determine if Carbon is messing this up or it's in the Cocoa code. Is this possible? Thanks.


[[theTextView undoManager] undo];

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.



--Graham



Regards,
        Josef

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to