• 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
other question ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

other question ...


  • Subject: other question ...
  • From: Wolfgang Schreurs <email@hidden>
  • Date: Tue, 26 Jul 2005 13:56:22 +0200

Yesterday I asked a question on this list, but I didn't get any response. Maybe the problem I'm having is a bit to difficult to solve quickly.

So I've got another question, which could help me out also. Please understand I'm a beginning Cocoa programmer.

Is it possible to get the current selected text from a webview and put it into a variable without using the pasteboard? I tried the following (the string tempString is declared in the header file):

  tempString = [webView selectedString];
  NSLog(@"tempString: %@", tempString);

I get the following error:

  2005-07-26 13:53:04.134 MyOneLineOfCodeBrowser[2050] ***
  -[WebView selectedString]: selector not recognized [self = 0x341260]

Can anyone tell me what I'm doing wrong? The function webView replaceSelectionWithMarkupString: works allright, so I must have access to the webview.
_______________________________________________
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
  • Follow-Ups:
    • Re: other question ...
      • From: Andreas Mayer <email@hidden>
  • Prev by Date: NSMutableCopy Issue - New to Cocoa and Objective-C
  • Next by Date: Re: Watch me learn Cocoa
  • Previous by thread: Re: NSMutableCopy Issue - New to Cocoa and Objective-C
  • Next by thread: Re: other question ...
  • Index(es):
    • Date
    • Thread