save

Core Data: When and where are Entities loaded in the first Place?

Hello experts, I have a question about Core Data. When starting my appliction, when is my data (which is stored automatically by Core Data) loaded into the NSArrayControllers? I want to modify it in the first place before the user can interact with it. To be more specific: I have an NSArrayController for the entitity Playlist. Before t...

Issue with change_view save redirect

I am attempting to change the redirected for the django admin save button. What I pasted below works on saving an already existing entry (updating) but not on saving a new one. Any thoughts? def change_view(self, request, object_id, extra_context=None): result = super(TodoAdmin, self).change_view(request, object_id, extra_context) ...

Is there any possibility to have access ask before saving data?

There's this program written by VBA running in Access. Every time we enter some data on a form and press the next record button on navigation bar data is saved automatically. I would like to know if there's a possibility to change this behavior, for example, to ask the user before saving the data. ...

C# Bitmap.Save saves image to other location as path

I'm doing a simple image resize and on the final I want to save it like: path = "C:\\new_image.jpg"; img.Save(path, jpegCodec, encoderParams); The problem is it saves to "....... \Users\Ervin\AppData\Local\VirtualStore\" . What did I do wrong or what did I miss out? UPDATE: I changed the path to an other folder, and it works. it seem...

assignment makes pointer from integer without a cast

I don't understand what is problem here! after I compile it, always show me: "assignment makes pointer from integer without a cast" I don't know what is the problem! Please let me, thanks. SAVE NSUserDefaults *percentChecker = [NSUserDefaults standardUserDefaults]; [percentChecker setInteger:0 forKey:percentCheckerSaveKey]; LOAD...

Saving data to plist per object or person

hi guys, i am trying to save data to the plist in my app per person, but it save it to everyone, so for example if i have a field for eye color and i enter brown in the textfield for john doe, it save brown for everyone else as well, is there a way to save this info per person in the app instead using plist, i have had no luck trying th...

what void QPainter::save()/restore() really do ?

i am doing tutorial from trolltech http://doc.trolltech.com/4.0/tutorial-t11.html - it is scorched earth-like "game". You can get ready files from links on the tutorial page. They are using painter.save()/restore() methods - I checked the description of that methods courious what that does.... unfortunately it has only one line expla...

saving aspx page to html

while saving my aspx page as webpage(.htm) i did not get the values assigned to labels/textbox. i got oly the label. eg: customer name: xxxx in the saved file(.html) i got oly customer name: and not the values when i store as .html. why??? ...

how to maintain the session in the same page

in my pageload i have got the session["name"] When i use this code to save: Stream stream = null; request = (HttpWebRequest)WebRequest.Create(url); response = (HttpWebResponse)request.GetResponse(); When it comes to this line: response = (HttpWebResponse)request.GetResponse(); it again move on to the pageload and that time the ses...

saving images to res folder

how do i save images to res folder or drawable folder in android? ...

Download a file to iPhone

Hy Everybody, I hope enyone cann explain me how I can save an file on the iPhone I get the file with NSURL so fare no prob. I'd like to donload the file and work with the donloaded file. But I have no Idea how. ...

Save NSTextView in NSMutableArray and read it

Hi Everyone! My question is the following, I have an NSTextView and I want to do 2 things : First save this textview in an NSMutableArray and assign a X,Y position to it in this array. Secondly, get this textview from the NSMutableArray and display it at the position I've set when I saved it in the array. Anyone have an idea of ho...

Download and save aspx page as html page

how to download the aspx page as a html page. i have used download code that downloads me the aspx page as html. but i when open the file saved in my desktop it is showing the format as <@page directive.....> and oly<% %> <% %> <% %> <% %> <% %> <% %> this tags are coming. how should i resolve this problem and get the page down...

How can I move variables into and out of a structure akin to LOAD and SAVE in MATLAB?

Is there a quick way (i.e. one line) to dump a collection of variables "in" a structure, using the variable names as the structure fields? The "load" function basically does this but saving and loading to a temporary file seems ugly. For example: clear a = 'adsf' b = rand(10); x = var2struct(a,b) x.a x.b or better yet: x = var2str...

Access for the path C:\ is denied.

if i save my webpage as html it is giving me the error: Access for the path C:\ is denied -ftp. in http locally it is working. it is storing in the desktop. but after publishing in ftp server it is showing this error how to resolve this errror ...

How to convert webpage to image using c#

how to convert webpage as a image? i have a aspx page display in browser, i need to get the webpage as an image. how to save the webpage as a image pls help... ...

iPhone save data getting deleted on upgrade?

I have an app in the app store, and just got a message from a user telling me that upon upgrading to a newer version of the app, their saved data all disappeared. Is there a distinctly wrong way to save data on the iphone that would cause data loss upon upgrading the app to a new version? Here is the code I'm using to load & save, whic...

Saving a file in Flex Air

Hi there, I'm trying to copy my SQLite file that is used in my Air app to user's selected directory using var fileSaveDest:FileReference = new FileReference(); fileSaveDest.save(dbWorkedFile,'Inventory.DB'); dbWorkedFile is a File dbWorkedFile = File.documentsDirectory.resolvePath("Inventory.db"); I tried this but the saved file i...

iPhone - How to best handle when a user leaves Entry Screen blank and presses Save

In our iPhone app we have a controller 'AddViewController' which shows a data entry screen to add a new entry. It includes Save and Cancel buttons. Currently if a user enters nothing at all in any of the text fields and presses Save the app crashes. (Yes I know it's silly for someone to do this, but hey just covering off on everything) ...

c# Save file directory

I want a user to pick a directory to save image files too. I'm new to c#, I've got the image thing working with OpenFileDialog, how would I do the directory thing. Basically, I want it to look like: Save Directory: C:\PATH.... Maybe a FolderBrowserDialog or OpenDirectoryDialog? Thanks for any help. ...