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 (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