Re: Implementing Back and Forth Control.
Re: Implementing Back and Forth Control.
- Subject: Re: Implementing Back and Forth Control.
- From: Jens Alfke <email@hidden>
- Date: Tue, 13 Oct 2009 08:29:33 -0700
On Oct 13, 2009, at 2:53 AM, Philip Juel Borges wrote:
But it would be better to have just one segmented control in the
toolbar that can go back and forth in any of the views that is
swapped in.
You can either
(1) Set the segmented control's target property to point to the active
WebView whenever you switch views;
or
(2) Implement your own goBack/goForward methods in your controller,
attach the segmented control to those, and make those methods call the
active WebView.
I've googled this for long now and thought that perhaps this would
work but it doens't [[webView window] goBack:self];
That won't work because NSWindow doesn't implement goBack:, and
objects don't arbitrarily forward messages to each other.
—Jens_______________________________________________
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