• 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: Suggestions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Suggestions?


  • Subject: Re: Suggestions?
  • From: "Clark S. Cox III" <email@hidden>
  • Date: Wed, 01 Aug 2001 11:30:18 -0400

on 08/01/2001 06:11, Andreas Monitzer at email@hidden wrote:

> On Wednesday, August 1, 2001, at 07:12 , Michael Sitarzewski wrote:
>
>> I do have to say that I am brand new to Cocoa and have chosen to learn
>> Java in the process, so be easy on me.
>>
>> I want create an app that accepts URLs, via drag and drop from a browser
>> or from the finder. The app will then search for URLs on the target page
>> and then display the results in a list. It won't show anything but the
>> URLs, so I don't necessarily need an HTML rendering library.
>>
>> It isn't terribly complex, but I haven't a clue where to begin with
>> reading a page from the web.
>>
>> NSURL looks nice, but is it right for this?
>
> Always on my desktop (as a clipping):
>
> From: List Mail <email@hidden>
> Date: Wed Apr 04, 2001 11:43:31 Europe/Vienna
> To: "J. Anderson Thompson" <email@hidden>
> Cc: email@hidden
> Subject: Re: Stock Download Example
> In-Reply-To: <20010404211610.SSVZ1403.femail2.sdc1.sfba.home.com@localhost>
> Errors-To: email@hidden
>
>
> On Wednesday, April 4, 2001, at 03:15 PM, J. Anderson Thompson wrote:
>
>> I just started using cocoa and was wondering if there was an example that
>> downloads stock information from yahoo or something using owf. Thanks
>
> I don't know anything about owf (OmniFrameworks?), but it's a piece of
> cake to get data from a URL:
>
> NSURL *url = [NSURL URLWithString:@"http://finance.yahoo.com/q?s=AAPL&d=v1";
> ];
>
> NSString *htmlString = [NSString stringWithContentsOfURL:url];
>
> Cocoa rocks! You could write some handy parsing code and probably suck
> the relevant financial data right out of the page. If writing a parser in
> objective-c doesn't sound fun, you could probably even write a small
> parser in perl and call the perl script from your app to parse the page
> for you.

Or, write it in Flex/Yacc.


--
Clark S. Cox III
email@hidden
http://www.whereismyhead.com/clark/


References: 
 >Re: Suggestions? (From: Andreas Monitzer <email@hidden>)

  • Prev by Date: Re: Text Sizing
  • Next by Date: Re: Suggestions?
  • Previous by thread: Re: Making multiple windows from the same class
  • Next by thread: Re: Suggestions?
  • Index(es):
    • Date
    • Thread