• 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: Implementing Back and Forth Control.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Implementing Back and Forth Control. (From: Philip Juel Borges <email@hidden>)

  • Prev by Date: Re: Getting AAC tag information
  • Next by Date: Re: TIFFRepresentation, different TIFF format under Snow Leopard
  • Previous by thread: Implementing Back and Forth Control.
  • Next by thread: NSFetchedResultController bug?
  • Index(es):
    • Date
    • Thread