• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Calling undo programatically
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Calling undo programatically


  • Subject: Re: Calling undo programatically
  • From: Ryan Joseph <email@hidden>
  • Date: Thu, 14 May 2009 13:40:04 +0700


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.


How did you create it then? -initWithFrame: is the right thing to do, why wouldn't you do it that way?

Also, I'm not sure where the undo manager comes from in a Carbon context, but I draw your attention to the NSTextView delegate method -undoManagerForTextView: which you might need.


After some tests it turned out that the undo manager was allocated and undoing work. The carbon events must have got broke some place in the line. Thanks again.


--Graham



Regards, Josef

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Calling undo programatically (From: Ryan Joseph <email@hidden>)
 >Re: Calling undo programatically (From: Graham Cox <email@hidden>)
 >Re: Calling undo programatically (From: Ryan Joseph <email@hidden>)
 >Re: Calling undo programatically (From: Graham Cox <email@hidden>)

  • Prev by Date: Re: Resolution Independent View?
  • Next by Date: locale sensitive string comparison on Tiger
  • Previous by thread: Re: Calling undo programatically
  • Next by thread: locale sensitive string comparison on Tiger
  • Index(es):
    • Date
    • Thread