xcode help??
-
- Veteran
- Posts: 339
- Joined: Wed May 27, 2009 5:07 am
- Location: Err.... Minecraftia?
xcode help??
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
or make the search bar search?? pls reply

^thanks monk


Re: xcode help??
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:
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.
Code: Select all
http://www.google.com/search?hl=en&q=SEARCH_TERM
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
Download Eschaton: Mediafire
-
- Veteran
- Posts: 339
- Joined: Wed May 27, 2009 5:07 am
- Location: Err.... Minecraftia?
Re: xcode help??
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
Download Eschaton: Mediafire
Re: xcode help??
NSString *search_term_formating = [NSString stringByReplacingOccurrencesOfString:@" " withString:@"+"];
NSString *the_search_term = [NSString stringWithFormat:@"http://www.google.com/search?hl=en&sour ... _formating];
NSString *the_search_term = [NSString stringWithFormat:@"http://www.google.com/search?hl=en&sour ... _formating];
-
- Veteran
- Posts: 339
- Joined: Wed May 27, 2009 5:07 am
- Location: Err.... Minecraftia?
Re: xcode help??
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.
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!
Re: xcode help??
What nil said. Get yourself Hillegass' "Cocoa Programming for Mac OS X" off of amazon and start reading.
-
- Veteran
- Posts: 339
- Joined: Wed May 27, 2009 5:07 am
- Location: Err.... Minecraftia?
Re: xcode help??
i have made the app (a web browser) so can some1 tell me where i put the code in?

^thanks monk


Re: xcode help??
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
Re: xcode help??
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.[VK]Pulse! wrote:i have made the app (a web browser) so can some1 tell me where i put the code in?
Re: xcode help??
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.
Who is online
Users browsing this forum: No registered users and 7 guests