• 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: Function call help
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Function call help


  • Subject: Re: Function call help
  • From: "John C. Randolph" <email@hidden>
  • Date: Thu, 15 Sep 2005 21:34:09 -0700


On Sep 15, 2005, at 9:00 PM, email@hidden wrote:

I am using web kit, I have web view up and working fine using web view, text boxt and button to load the url from the text field to the web view.

I am trying to make a back button, the Web Kit says to use a the function:

- (void) goBack;

No, it says to use the -goBack: action. The colon is part of the method's name.


If you want to connect a button to the -goBack: action, put the button somewhere on a window, then control-drag from the button to a WebView. The Connection inspector will show you a list of all the actions defined for a WebView. Double-click on the line that says "goBack:".

If you want to send a -goBack: message from your code, then send:

[myWebView goBack:self];

..where "myWebView" is the id of some WebView instance.

-jcr



John C. Randolph <email@hidden> (408) 914-0013
Roaming Cocoa Engineer,
Available for your projects at great Expense and Inconvenience.



_______________________________________________
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


References: 
 >Function call help (From: email@hidden)

  • Prev by Date: Function call help
  • Next by Date: Build Log in Xcode
  • Previous by thread: Function call help
  • Next by thread: Build Log in Xcode
  • Index(es):
    • Date
    • Thread