Setting a specific file on the mac

I am using NSKeyedArchiver and NSKeyedUnarchiver to archive and unarchive favorites that a user has. My question is this. How do I specify where I want this file with the archived favorites to be stored? Suppose I want them to be in the Home -> Library folder somewhere. How do I specify this? Can I use just the archiveRootObject:toFile: method or will I need some other special method?
+Note: This is programming on Mac, not iPhone.+

When I try to specify a file, for example ~/Library/Preferences/myfavorites in NSKeyedArchiver and NSKeyedUnarchiver, nothing happens, but if I just use myfavorites, it works. Do I have to use a completely different class for this, a different method, or am I specifying the file the wrong way?

Similar Messages

  • How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    You can certainly use iWork, though I hesitate to recommend it to a seasoned Windows user simply because it would add another level of the unfamiliar with which you would have to gain familiarity. The iWork applications are certainly very competent and in most respects both easy to use and surprisingly powerful. They are not 100% compatible however, though that typically manifests itself in document formatting issues rather than anything more significant.
    I have never attempted to import emails from a Windows system into MacOS - other than in Outlook connected to an Exchange server, thus not really an issue at all. I doubt that the Mail app in MacOS can import directly, but of course you could always set the account(s) up on the Mac and then forward emails you want to keep from the PC. Not elegant, but it works. Virtually any Windows document or file, whichever application created it, can be opened or converted for use on a Mac, and using both systems on my desk each day I rarely see any issues switching stuff from one machine to the other. You may stumble over one or two issues, but likely not significant.
    In switching platforms there will be some inevitable issues, not so much with being able to import your stuff because there's usually a workaround or a utility that can help, but just with getting familiar with the platform and the differences between Windows and MacOS that can obscure their similarities. From time to time the support community here hears from a user who has found the migration very problematic and regrets it, but for the most part the phrase 'I should have done this years ago...' is rather more prevalent!

  • Will iCloud backup and push specific files from one MAC to another?

    will iCloud backup and push specific files from one MAC to another?

    This is what I get when I follow that Link, Winston.
    I am using Safari and I am sighned in with my Apple Id. I'm not sure what the trouble is but I can not seem to read that tip is there some other way for me to find it?
    Unauthorized
    It appears you're not allowed to view what you requested. You might contact your administrator if you think this is a mistake. 

  • Can I remove a SPECIFIC file from the "Recents" list?

         As far as I can see, Adobe Reader for Android has only the option of clearing ALL the files in the "Recents" list. It doesn't have the option of removing a specific file from the "Recents" list.
         Maybe I'm just missing the option I'm talking about or Adobe Reader doesn't really have that feature.
         Sensible answers to my question will be greatly appreciated. Thanks!

    Hi iSTULIN
    I assume you can delete the complete list, not the single file ...
    Please check the below link : http://blogs.adobe.com/readermobile/2011/09/09/faqs-for-adobe-reader-on-android/
    You can raise a feature request on the below link : https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • My windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    my windows(8.1 64bit) partition is read only from the mac(yosemite) side of things. Anybody have a clue on how to fix this? Also, slightly frustrating as well, windows crashes every time I attempt to open a file from the mac partition.

    All Office applications will also try to open a temporary work file in the same location as the source file. This implies the source file directory also needs to be writable for this temporary file. Since the default HFS+ driver provides only read-only access, such temporary files will fail to open, and will cause the application to fail.
    As a test copy the file you want to edit, say an Excel spreadsheet from the OSX file system to the C: drive on the Windows side and try to open it. If you look in this directory, you should see two files, the source and a temporary file. You may have to force the temporary file to be opened on a read-write file system, by manipulating the folder for temporary files.

  • If you delete a large file from the mac hard drive does it also remove it from time machine on external hard drive

    if you delete a large file from the mac hard drive does it also delete it from time machine on the external hard drive ?

    As the others say, no, the backup copy won't be deleted immediately, but it will eventually.
    If you want to delete all backups of a selected item, such as for space or security reasons, see #12 in Time Machine - Frequently Asked Questions.

  • When looking at my "About This Mac" it says that I have 60gb of space left on my hard drive, but when I go into finder to find all of these files there is not 300gb worth in anything I search, even searching, "All files on the Mac". Help!?

    When looking at my "About This Mac" it says that I have 60gb of space left on my hard drive, but when I go into finder to find all of these files there is not 300gb worth in anything I search, even searching, "All files on the Mac". Help!?
    It says I have over 150 gigs of video on my hard drive. But I have gone through and deleted almost all of what shows up, still it says there is roughly the same amount on the hard drive. Where are these files? I want to delete them so I can have my hard drive clear.
    Thanks for your help guys!

    Quote from the article.
    Time Machine in OS X Lion includes a new feature called "local snapshots" that keeps copies of files you create, modify or delete on your internal disk. Local snapshots compliment regular Time Machine backups (that are stored on your external disk or Time Capsule) giving you a "safety net" for times when you might be away from your external backup disk or Time Capsule and accidentally delete a file.
    So what makes a notebook any different then a desktop, other then with a desktop you might have your tm backup drive connected all the time.
    The object here is to not indiscriminately delete files you need or want to keep. I personally have never deleted a file I wanted to keep.
    In essence a backup is for catastrophic failure of your system. So it can be restored once that failure has been fixed. Not because you go in willy nilly and start deleting files.

  • I had a windows laptop, and I save files like photos, documents, videos and other things on an external hard drive, and now I want to move those files to the Mac book Pro, and then move those files again to another external hard drive 1T. My question is:

    I had a windows laptop, and I save files like photos,documents, videos and other things on an external hard drive, and now I want tomove those files to the Mac book Pro, and then move those files again toanother external hard drive 1T. My question is: Is it possible? Doing this willnot affect the files that I had in windows? No information is lost? or how cani do it?

    Connect the external drive to your Mac and drag the files from it to your Mac's internal drive. Then dismount and disconnect the external drive, connect the 1TB external drive, and drag the files from the internal drive onto the external. Nothing will have been deleted from any of the drives up to this point; the files will only have been copied. Verify that the files are readable. There's no reason they shouldn't be; this is just a precaution.
    Now if you wish to delete the files from any of the drives, drag them to the Trash, and Empty the Trash while the drive from which they came is still connected. If you disconnect the drive before emptying the Trash, the files you were trying to remove from it won't be deleted. They'll remain in the Trash and continue to take up space on the drive.
    Note that if your external drives are in NTFS format, you won't be able to write anything to them or delete anything from them, though you will be able to read and copy the files they contain. The NTFS disk format is read-only to the Mac OS, unless you have a third-party NTFS driver installed. To make your drives cross-platform readable and writable, you must reformat them in the FAT32 or ExFAT format.

  • Since I have installed Lion onto my iMac it's impossible to to copy any video file from the mac to an external support (ups-stick, Timecapsule). What's happened? What can I do?

    Since I have installed Lion onto my iMac it's impossible to to copy any video file from the mac to an external support (ups-stick, Timecapsule). What's happened? What can I do?

    If you just did upgrade Lion, give it some time. I recall having similar problems and some articles mention heavy background work after install - such as re-indexing for Spotlight etc. I couldn't even copy from folder to folder or e.g. iphoto to folder on the same disk. Went away after a day or two though.
    I do however still have a problem with AFP access to one of the lion machines - kills it's network adaptors rather quickly. No luck solving this so far :|

  • If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    If i create a partition for Windows 7, and boot up in Windows using Boot Camp, can I still access the files from the Mac partition (Photo's Music etc.)

    JDFitch wrote:
    Ok Great,
    Will installing Boot Camp drivers allow me to both read and write to the OS X Volume from windows?
    This is important as if it will it means i can make the windows partition a lot smaller and keep all my files on the OS X partition which would be preferable.
    Jon
    No, OSX will be read only (from Windows) and vice versa. (you can install 3rd party utilities on either or both partitions, to make read/write possible)

  • I have transferred a load of files from my PC to my iMac using the migration assistant.  The message on both machines say that the process was successful bu tI can not find the files on the mac.  Any ideas?

    I have transferred a load of files from my PC to my iMac using the migration assistant.  The message on both machines say that the process was successful but I can not find the files on the mac.  Any ideas?

    When you use Migration Assitant it creates another user account and puts your files there. Please log out of your normal account and log into the new account. Had you use Setup Assistant when it asked if you were migrating that would not have occured. You have a couple of options, combine the two accounts (not recommended) or start over, use Setup Assistant and have everything in one user account. Here is a link to Pondin's guide for Lion Setup Assistant tips however if you want to combine the two accounts he has addressed that in
    http://pondini.org/OSX/Transfer.html

  • After file migration from PC to to Mac, where can I find my files on the Mac

    We recently purchased a MacBookPro and transferred the desktop and files including downloads from our Sony PC to the Mac.  The migration was successful, but we don't know where to look for the files on the Mac after the migration.  Please help.

    You should find a new account on the Mac. Logout of the current account and log into the new account.

  • How can I open 'MPEG' file on the Mac?

    Hi! I'm a new user of imac. Before now, I used to use PC.
    Most of mac tools are strange for me on the Mac. T^T
    At this time, when I tried to click 'MPEG' files on the mac, the movie could not be opened.
    The window popped up and said,
    'The file is not a movie file.'
    but, When I opened 'MPEG' files on the PC, there were nothing problem to see.
    How can I open and import 'MPEG' files on the Mac? Plz help me

    You may need to purchase Apple's MPEG-2 Playback Component (it's included with FCP and DVD-SP). Also try opening the file with VLC Player or MPEG Streamclip.
    -DH

  • Can I save a file to the Mac HD and, automatically, also save it to Dropbox?, Can I save a file to the Mac HD and, automatically, also save it to Dropbox?

    Hi everyone,
    Can I save a file to the Mac HD and, automatically, also save it to Dropbox (or another cloud-based storage)?
    What I would like to do is to have my Mac HD duplicated in the Cloud?
    Is this possible?
    Many thanks!
    Bryan

    Dear dwb
    Many thanks for responding!
    I am not that technical and I would be grateful if you could continue to help, please.
    On the first bit - the Dropbox folder - this I understand - I have been using Dropbox for a number of months and it is fine.
    The linking folders outside Dropbox does sound like it is what I would like to do but I don't know how to do it!
    May I give an example? 
    If I have a folder on my Mac HD in Documents entitled "Tax" (nightmare!!) and in the folder I have some subfolders (e.g. 2011, 2012 and 2013) and in the subfolders I have files such as "Propeties", "Travel Days", "Interest", etc.
    I would like to duplicate this folder (Tax) and all of its subfolders and files in Dropbox and AUTOMATICALLY update the Dropbox files everytime I update the file on the HD.
    Is this possible with Symlink?  And if so, how do I do it?
    I really appreciate your help!!
    Many thanks,
    Bryan

  • Access specific files in the time machine from another Mac

    I bought one mac air with less space than the mac pro backup that I have in the Time Machine, so I can't migrate the old mac to the new mac air. How can I Access specific files in time machine then? Thank you.

    You can still get your files out of the TM backup..
    There are several methods..
    you can do it manually.
    See Can't access old files on time capsule
    You can also buy a USB drive large enough for the whole backup and simply restore the whole thing to that drive plugged into your computer.. you can then pick and choose what files you want. And at any time you want. Having files in their standard format and location is hugely easier than TM backups.
    If you run into permissions issues there is a fair bit of help although a bit outdated in pondini KB.
    So read through the info here..
    Q14-17 on restore in particular. http://pondini.org/TM/FAQ.html
    And check the troubleshooting for specific problems that can arise.
    http://pondini.org/TM/Troubleshooting.html
    Section E in particular.
    You can pull the hard disk out of your Mac Pro.. that is not hard.. put it in a USB to sata holder and access files that way..
    Overall this is what I would do anyway.. because you will not want to junk the computer with files intact.. pull the files directly off the old hard disk.
    Let me also commend to you a different strategy in the future..
    TM is great when it works.. sadly on every upgrade Apple make changes to it.. and cause utter chaos.
    Buy a 3rd party backup software.. I use CCC and like it.. you create bootable clones of your Mac.. that means all files are readily accessible because you can literally boot directly from the backup.. or access the files because they are not hidden, compressed, rewritten in strange formats.. etc.
    Recovery of a computer with a dead hard disk is 3min exercise where you hold the options key during boot and choose the backup disk.
    You can continue to use TM for the incremental backups which it does very well.. but have the bootable clone as a way of accessing everything. From which you can then easily access the TM backup for whatever might be missing.. I do not do Clones on regular basis.. so it is slightly different method of doing things..
    You can never have enough backups.

Maybe you are looking for

  • Event Time in iCal changed after the Event Date changed !!!!

    I can not change either Date of Time of the Event because both of them will be changed to be the same value all the time. Please see the picture below. I changed to date to 29th and the time changed to 29:00 !!!! http://www.freemac.net/modules.php?na

  • Unsanity related blue screen of death

    I decided to post this as a separate thread from the ongoing blue screen of death, as that thread seems to be mostly related to those upgrading to Leopard. My situation is slightly different. There appears to be two separate issues related to this bl

  • Obsolete / Inactive Items/ Inventory Report

    When we have an item that we no longer need to purchase, we go to the product, under the purchasing tab and change the status from active to inactive. We also change the status on the sales tab when the product is obsolete and we can no longer sell i

  • Cannot start BI server, cannot start cluster successfully, core dumped

    Hi I have the following configuration. The four machines are virtualized containers on solaris sparc machine 1 - PS, java host, web logic machine 2 - PS, java host, web logic machine 3 - bi server, primary cluster controller, scheduler machine 4 - bi

  • Include in which invoice is saved

    Hi, Can any body please let me know the include in which invoice is last saved? Regards, Rohan.