Re: Identical undo between two views (or one view, two windows) puzzle (SOLVED)
Re: Identical undo between two views (or one view, two windows) puzzle (SOLVED)
- Subject: Re: Identical undo between two views (or one view, two windows) puzzle (SOLVED)
- From: Keith Blount <email@hidden>
- Date: Wed, 2 Mar 2005 10:25:56 -0800 (PST)
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Many thanks to both of you for your replies, much
appreciated. I cleaned things up a bit and did as Bob
said, returning the view's undo manager in the
fullscreen window's windowWillReturnUndoManager:
delegate method. I had been receiving lots of crashes
doing this, but it turns out that this was unrelated -
caused by me setting a text view's delegate as the
full screen window. (I don't know what I've done
there, but it all needs rewriting anyway.) Once I'd
sorted this out, undo worked beautifully between full
screen and normal mode.
Thanks again for helping me find the solution,
All the best,
Keith
--- Robert Clair <email@hidden> wrote:
> > More importantly, though, I still
> > haven't got undo to work between fullscreen and
> normal
> > mode using this approach, presumably because each
> > window has its own undo manager (I have tried
> > windowWillReturnUndoManager to no avail).
>
> It is the NSDocument that holds the undoManager by
> default (
> -undoManager in NSView and NSWindow just passes it
> on to the next
> responder).
>
> -windowWillReturnUndoManager is a delegate method
> for NSWindow - if you
> create delegates for both windows and have both of
> their
> -windowWillReturnUndoManager methods return the
> undoManager for your
> view it should work. How were you trying to do it ?
>
>
>
> ....Bob Clair
>
>
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden