xcode help??

Feel free to talk about anything and everything in this board.
Post Reply
[Vk]Pulse!
Veteran
Posts: 339
Joined: Wed May 27, 2009 5:07 am
Location: Err.... Minecraftia?

xcode help??

Post by [Vk]Pulse! » Thu Nov 19, 2009 8:28 am

i have made some files like a web browser is there a way to set the home page?

or make the search bar search?? pls reply
Image
^thanks monk

Image Image

Altimit01
Eschaton Dev
Eschaton Dev
Posts: 2108
Joined: Sun Apr 15, 2007 7:43 pm

Re: xcode help??

Post by Altimit01 » Thu Nov 19, 2009 8:49 am

For the homepage you'll want to store it as a persistent file somewhere and have your browser open and read the url every time a new window is opened. For google search the format is pretty simple. At the most basic it's:

Code: Select all

http://www.google.com/search?hl=en&q=SEARCH_TERM
where SEARCH_TERM is a single term. You can have several by putting + symbols between the terms. I couldn't find any API stuff for using it in an app, but google does have information on how to do custom site search here.
Disclaimer: I am no longer active. Any posts, PMs or other communication I use has no guarantee of accuracy or follow up.
Download Eschaton: Mediafire

[Vk]Pulse!
Veteran
Posts: 339
Joined: Wed May 27, 2009 5:07 am
Location: Err.... Minecraftia?

Re: xcode help??

Post by [Vk]Pulse! » Thu Nov 19, 2009 9:52 am

what?
Image
^thanks monk

Image Image

Altimit01
Eschaton Dev
Eschaton Dev
Posts: 2108
Joined: Sun Apr 15, 2007 7:43 pm

Re: xcode help??

Post by Altimit01 » Thu Nov 19, 2009 11:21 am

You said you made a web browser right? I'm giving you some advice on how to implement the browsing features you talked about. The way you would set up a homepage is by storing the data in a file accessible by your program. The way you would use a search bar is by parsing the text in the field, generating a search url (I gave an example with google) and then simply go to that site.
Disclaimer: I am no longer active. Any posts, PMs or other communication I use has no guarantee of accuracy or follow up.
Download Eschaton: Mediafire

Dirk

Re: xcode help??

Post by Dirk » Thu Nov 19, 2009 2:44 pm

NSString *search_term_formating = [NSString stringByReplacingOccurrencesOfString:@" " withString:@"+"];
NSString *the_search_term = [NSString stringWithFormat:@"http://www.google.com/search?hl=en&sour ... _formating];

[Vk]Pulse!
Veteran
Posts: 339
Joined: Wed May 27, 2009 5:07 am
Location: Err.... Minecraftia?

Re: xcode help??

Post by [Vk]Pulse! » Thu Nov 19, 2009 3:54 pm

ya but where do u put the code in?
Image
^thanks monk

Image Image

nil
Halo Moderator
Halo Moderator
Posts: 1090
Joined: Sat Jul 05, 2008 8:38 am
Location: null zone

Re: xcode help??

Post by nil » Thu Nov 19, 2009 4:23 pm

It seems like you're getting way ahead over yourself, especially considering you named the topic "xcode help." You're asking a very general question, with not saying what attempts you have made to solve your problem, and no mention of what tools you're actually using (xcode says _very_ little.).

If you weren't able to understand alt's general response to your general question, or where to use Dirk's code snippet, then perhaps you should consider starting smaller.
I am no longer active to Halo or MGM, and don't guarantee a response on the forums or through email. I will however linger around the discord room for general chatting. It's been fun!

Dirk

Re: xcode help??

Post by Dirk » Thu Nov 19, 2009 4:29 pm

What nil said. Get yourself Hillegass' "Cocoa Programming for Mac OS X" off of amazon and start reading.

[Vk]Pulse!
Veteran
Posts: 339
Joined: Wed May 27, 2009 5:07 am
Location: Err.... Minecraftia?

Re: xcode help??

Post by [Vk]Pulse! » Thu Nov 19, 2009 5:29 pm

i have made the app (a web browser) so can some1 tell me where i put the code in?
Image
^thanks monk

Image Image

kiddten
Commando
Posts: 2469
Joined: Wed Sep 30, 2009 1:42 am
Location: Nova Zeelandia.

Re: xcode help??

Post by kiddten » Thu Nov 19, 2009 5:50 pm

in your source code
kiddten, on most things nowadays wrote:no
TaxiService wrote:HERE IS THE GODDAMN WALDO YOU CHEATING DICK
๖ۣۜĐeяP wrote:U MOTHER FUCKER AND U FUCKING PARENTS AND FUCKED OFF ASS HOLES

Jrr51
Peon
Posts: 134
Joined: Tue Dec 04, 2007 4:54 pm

Re: xcode help??

Post by Jrr51 » Thu Nov 19, 2009 7:28 pm

[VK]Pulse! wrote:i have made the app (a web browser) so can some1 tell me where i put the code in?
That's like saying, "I made a picture, where should I add more colors?" You give so little information that the question becomes so general that no one can answer it in the way that you want.

Dirk

Re: xcode help??

Post by Dirk » Thu Nov 19, 2009 9:20 pm

To me it sounds like you just hooked up UI elements so they require no code. That is no how you want to do this....Like I said, get the book.

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests