Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 05-26-2008, 02:23 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 59
brianr is an unknown quantity at this point
Default Settings "Clear History" button

In the Safari settings there are buttons to "Clear History", "Clear Cookies", and "Clear Cache" with an associated alert confirmation. Is there any way for us to do this?

- Brian
brianr is offline   Reply With Quote
Old 05-26-2008, 08:43 PM   #2 (permalink)
New Member
 
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
bonehead is an unknown quantity at this point
Default Re: Settings "Clear History" button

Quote:
Originally Posted by brianr
In the Safari settings there are buttons to "Clear History", "Clear Cookies", and "Clear Cache" with an associated alert confirmation. Is there any way for us to do this?
Are you asking whether it's possible for your application to create its own Settings panel that shows up in the Settings app? (It is: see instructions for creating a Settings Bundle in the programming guide)

Or are you asking whether you can force Safari to e.g. clear its cache from your own code? I'm not aware of a way to do this.
bonehead is offline   Reply With Quote
Old 05-26-2008, 09:28 PM   #3 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 59
brianr is an unknown quantity at this point
Default Re: Settings "Clear History" button

No... I know how to create the settings file... I have a couple of switches and a slider... but I want a "button" that behaves similar to the "Clear History" row in the Safari settings.
brianr is offline   Reply With Quote
Old 05-26-2008, 10:40 PM   #4 (permalink)
New Member
 
Join Date: Apr 2008
Location: Onomatopoeia, Lugubriousylvania
Posts: 225
bonehead is an unknown quantity at this point
Default Re: Settings "Clear History" button

Quote:
Originally Posted by brianr
No... I know how to create the settings file... I have a couple of switches and a slider... but I want a "button" that behaves similar to the "Clear History" row in the Safari settings.
As far as I know, there's no way for an external application to drive the history settings of Safari. This seems like bad practice in general-- if users wish to clear Safari's history, they can easily open Safari Settings.
bonehead is offline   Reply With Quote
Old 05-27-2008, 04:54 PM   #5 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 59
brianr is an unknown quantity at this point
Default Re: Settings "Clear History" button

No... I'm talking about the way the Safari history settings works.

I want a "Clear Recent" for my program in my settings.

But, I don't know how the Safari settings implements a button like it does for "Clear History".
brianr is offline   Reply With Quote
Old 05-28-2008, 09:20 AM   #6 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 298
javid.alimohideen is an unknown quantity at this point
Default Re: Settings "Clear History" button

Hey Brian,
The "Clear History" is a table view cell. when you select the cell it displays the UIActionSheet. So for your case, you need to have a tableView with grouped style and when the user select the table cell for History or Recents you display the action sheet and perform the action you would like to do.

Javid
javid.alimohideen is offline   Reply With Quote
Old 05-28-2008, 11:52 AM   #7 (permalink)
Registered Member
 
Join Date: Apr 2008
Posts: 59
brianr is an unknown quantity at this point
Default Re: Settings "Clear History" button

But... this is all going on in the Settings.

The only thing you can do in Settings, I believe, is set up a plist... and I don't see any kind of "Key" that would be a "table row selection" and even if there was, how would the application know or respond to that row being selected.

My point was Safari does it, but I'm thinking that our applications can't do the same thing. And, of course, my hope was that I'm missing something and it can be done.
brianr is offline   Reply With Quote
Old 05-28-2008, 12:40 PM   #8 (permalink)
New Member
 
Join Date: Apr 2008
Posts: 298
javid.alimohideen is an unknown quantity at this point
Default Re: Settings "Clear History" button

Oh ok. Now, I see what you are trying to do. I thought your settings is within your application context and I didn't know you were using the "General settings" feature. Sorry, for any misleading thoughts.

Javid
javid.alimohideen is offline   Reply With Quote
Old 11-19-2008, 12:54 PM   #9 (permalink)
Registered Member
 
Join Date: Oct 2008
Location: Columbus, OH
Posts: 57
pinpoint is on a distinguished road
Send a message via AIM to pinpoint
Default Any luck with this?

I'd like to do the same thing. Anyone have any luck implementing?
__________________
Dave Peat
Pinpoint Solutions, Inc.
pinpoint is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to show "Turn off Airplane Mode..." network dialog? bonehead iPhone SDK Development 8 01-18-2010 10:37 PM
Nicely centered "Loading" spinner (activity indicator) ? bonehead iPhone SDK Development 4 09-01-2009 02:32 PM
CFNetwork sendDidReceiveDataCallback autorelease "leak" bonehead iPhone SDK Development 3 06-04-2008 01:45 PM
"Tab bars from scratch in Beta 4" Tutorial question raptorlol iPhone SDK Development 6 05-26-2008 01:39 PM
Problem with "Tab bars with Interface Builder" tutorial christian iPhone SDK Development 0 04-21-2008 10:50 AM


» Advertisements
» Online Users: 329
4 members and 325 guests
guusleijsten, HowEver, LEARN2MAKE, mottdog
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,649
Threads: 94,113
Posts: 402,880
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Anwerbl
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:42 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0