• 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
Correct implementation of undoManagerForTextView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Correct implementation of undoManagerForTextView


  • Subject: Correct implementation of undoManagerForTextView
  • From: Jeremy Dronfield <email@hidden>
  • Date: Wed, 3 Mar 2004 18:32:45 +0000

My app has two separate text views (one in the main window, another in a drawer). Each has its own separate delegate, and I want each to have its own undo manager. (So that they can separately trigger an Unsaved Changes warning.) The trouble is, I can't figure out the correct implementation of the NSTextView delegate method:

- (NSUndoManager *)undoManagerForTextView:(NSTextView *)aTextView
{
return (what?);
}

There's no illumination in the FM, and I'm further confused by a reference by Bill Cheeseman (Omni archives) to this as an NSWindow delegate method, which it clearly isn't.
-Jeremy

========================================
email@hidden

theLocustFarm.net:
- fractious fiction at http://freespace.virgin.net/jeremy.dronfield
========================================
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: Correct implementation of undoManagerForTextView
      • From: Dustin Voss <email@hidden>
  • Prev by Date: Re: subclassing NSArrayController
  • Next by Date: Need Finder-like custom list contol in Cocoa
  • Previous by thread: Re: uninitialize
  • Next by thread: Re: Correct implementation of undoManagerForTextView
  • Index(es):
    • Date
    • Thread